net.sf.jasperreports.engine.JRRuntimeException: Increment class not found. error

Hi guys

I have this error that started to appear when i run my report in Jaspersoft Studio 5.5. I havent changed anything, increment type is set to none. I am stuck as it seems I cant find the problem anywhere.


net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: Increment class  not found.
Caused by: net.sf.jasperreports.engine.JRRuntimeException: Increment class  not found.
    at net.sf.jasperreports.engine.fill.JRFillSubreportReturnValue.getIncrementer(
    at net.sf.jasperreports.engine.fill.FillReturnValues.copyValue(
    at net.sf.jasperreports.engine.fill.FillReturnValues.copyValues(
    at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(
    at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(
    at net.sf.jasperreports.engine.fill.JRFillBand.fill(
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(
    at net.sf.jasperreports.engine.fill.BaseFillHandle$
    at Source)
Caused by: java.lang.ClassNotFoundException:
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(
    at net.sf.jasperreports.engine.fill.JRFillSubreportReturnValue.getIncrementer(
    ... 13 more

Thanks for any help!


pawelkosi's picture
Joined: Jan 14 2014 - 9:07am
Last seen: 4 years 10 months ago

1 Answer:

Ok. I know this response is very late but I ran into this issue today
I am posting in the hope that this will save someone some time.

When you have a sub report that returns values and you do a calculation eg sum it will generate the following XML.

<returnValue subreportVariable="SubReport_SysVar_SubTotal" toVariable="MainReport_SysVar_Total" calculation="Sum"/>

In the "Subreport Return Values" screen you get a table with 4 columns  the last one is Incrementer Factory Class.

If you have tried to do any calculation or even just looked into the Incrementer Factory Class option in this screen it will add the
incrementerFactoryClass option to the setting.

<returnValue subreportVariable="SubReport_SysVar_SubTotal" toVariable="MainReport_SysVar_Total" calculation="Sum" incrementerFactoryClass=""/>

This will cause you to get the error.

Quick an easy fix is to remove the incrementerFactoryClass="" in the source file and save.

peter.w's picture
Joined: Oct 12 2012 - 6:57am
Last seen: 3 months 1 hour ago

saved me tons of time - thanks for taking the time to post your findings

ntatlock - 7 years 7 months ago

I had the same error and your fix worked for me as well.

meatwad - 7 years 2 months ago

you helped me really. Thank you! @JASPER TEAM: why is this bad behaviour/bug still existing? I'm working with the integrated Eclipse iReport plugin.

r.vandenheuvel - 7 years 2 months ago
show 4 more...

Saved me a lot of time as well.

kruger53_1 - 7 years 2 months ago

Really helpful. Thanks.

vijayshree.patil - 7 years 1 month ago

Thanks dude!

haziel - 5 years 8 months ago

really helpful dude

phaks - 5 years 6 months ago