pawelkosi Posted February 12, 2014 Share Posted February 12, 2014 Hi guysI 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 More sharing options...
peter.w Posted October 21, 2014 Share Posted October 21, 2014 Ok. I know this response is very late but I ran into this issue todayI 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 theincrementerFactoryClass 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 More sharing options...
ntatlock Posted November 6, 2014 Share Posted November 6, 2014 saved me tons of time - thanks for taking the time to post your findings Link to comment Share on other sites More sharing options...
meatwad Posted April 6, 2015 Share Posted April 6, 2015 I had the same error and your fix worked for me as well. Link to comment Share on other sites More sharing options...
r.vandenheuvel Posted April 24, 2015 Share Posted April 24, 2015 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. Link to comment Share on other sites More sharing options...
kruger53_1 Posted April 30, 2015 Share Posted April 30, 2015 Saved me a lot of time as well. Link to comment Share on other sites More sharing options...
vijayshree.patil Posted May 21, 2015 Share Posted May 21, 2015 Really helpful. Thanks. Link to comment Share on other sites More sharing options...
haziel Posted October 3, 2016 Share Posted October 3, 2016 Thanks dude! Link to comment Share on other sites More sharing options...
phaks Posted December 15, 2016 Share Posted December 15, 2016 really helpful dude Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now