Jump to content
We've recently updated our Privacy Statement, available here ×

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


pawelkosi

Recommended Posts

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.

Error:

net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: Increment class  not found.    at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:482)    at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$18(ReportControler.java:457)    at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:347)    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)Caused by: net.sf.jasperreports.engine.JRRuntimeException: Increment class  not found.    at net.sf.jasperreports.engine.fill.JRFillSubreportReturnValue.getIncrementer(JRFillSubreportReturnValue.java:127)    at net.sf.jasperreports.engine.fill.FillReturnValues.copyValue(FillReturnValues.java:248)    at net.sf.jasperreports.engine.fill.FillReturnValues.copyValues(FillReturnValues.java:230)    at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:792)    at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:332)    at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:384)    at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:358)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2059)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:778)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:288)    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:151)    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:932)    at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFiller.run(BaseFillHandle.java:120)    at java.lang.Thread.run(Unknown 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(JRClassLoader.java:175)    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)    at net.sf.jasperreports.engine.fill.JRFillSubreportReturnValue.getIncrementer(JRFillSubreportReturnValue.java:122)    ... 13 more[/code]

 

Thanks for any help!

 

Pawel

Link to comment
Share on other sites

  • 8 months later...
  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...
  • 3 weeks later...
  • 3 weeks later...
  • 1 year later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...