Problem in using jasper 3.7.1 reports in jasper 4.5

1

Hi, I am having some trouble in accessing reports developed in JasperReports v3.7.1 imported in JasperReports v4.5. I am getting following error trace:

The server has encountered an error. Please excuse the inconvenience. 
Error Message java.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal Error Trace java.lang.ClassCastException: 
java.lang.Integer cannot be cast to java.math.BigDecimal 
at net.sf.jasperreports.engine.fill.JRBigDecimalSumIncrementer.increment(JRBigDecimalIncrementerFactory.java:303) 
at net.sf.jasperreports.engine.fill.JRAbstractExtendedIncrementer.increment(JRAbstractExtendedIncrementer.java:42) 
at net.sf.jasperreports.engine.fill.JRCalculator.estimateVariables(JRCalculator.java:182) 
at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:862) 
at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:837) 
at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1434) 
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:126) 
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836) 
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:746) 
at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:640) 
at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) 
at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) 
at java.lang.Thread.run(Thread.java:619) 

Is there any way to make it work out without changing the code of reports? Will appriciate any help.

Thanks in advance.

himanshu_sin-disp's picture
Joined: Jul 2 2013 - 10:08pm
Last seen: 6 years 9 months ago

1 Answer:

0

Try 4.5.1 and see if it makes any difference.  If not, post your JRXML so that we can see what exactly the problem is.

HTH,

Lucian

lucianc's picture
7209
Joined: Jul 17 2006 - 1:10am
Last seen: 5 days 9 hours ago
Feedback