Error in Jaspersoft Report - 3d Bars, migrating from 7.1 to 9

223 views
Skip to first unread message

jen...@gmail.com

unread,
Apr 28, 2022, 11:04:54 AM4/28/22
to iDempiere
Hello all,
another problem in migrating 7.1 to 9 is that a report, correctly working in idempiere 7.1, crashes in idempiere 9, with the following error:

14:59:20.065===========> ProcessUtil.startJavaProcess: org.adempiere.report.jasper.ReportStarter [975]
java.lang.NoSuchMethodError: 'org.jfree.chart.JFreeChart org.jfree.chart.ChartFactory.createBarChart3D(java.lang.String, java.lang.String, java.lang.String, org.jfree.data.category.CategoryDataset, org.jfree.chart.plot.PlotOrientation, boolean, boolean, boolean)'
    at net.sf.jasperreports.engine.fill.DefaultChartTheme.createBar3DChart(DefaultChartTheme.java:701)
    at net.sf.jasperreports.engine.fill.DefaultChartTheme.createChart(DefaultChartTheme.java:330)
    at net.sf.jasperreports.engine.fill.JRFillChart.evaluateChart(JRFillChart.java:854)
    at net.sf.jasperreports.engine.fill.JRFillChart.evaluateRenderer(JRFillChart.java:807)
    at net.sf.jasperreports.engine.fill.JRFillChart.resolveElement(JRFillChart.java:1415)
    at net.sf.jasperreports.engine.fill.JRFillElement.performDelayedEvaluation(JRFillElement.java:1140)
    at net.sf.jasperreports.engine.fill.JRFillElement.resolveElement(JRFillElement.java:1242)
    at net.sf.jasperreports.engine.fill.ElementEvaluationAction.execute(ElementEvaluationAction.java:69)
    at net.sf.jasperreports.engine.fill.DelayedFillActions.runActions(DelayedFillActions.java:271)
    at net.sf.jasperreports.engine.fill.BaseReportFiller.resolveBoundElements(BaseReportFiller.java:807)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveReportBoundElements(JRBaseFiller.java:1209)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1238)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:308)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:126)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
    at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:414)
    at org.adempiere.report.jasper.ReportStarter.startProcess0(ReportStarter.java:460)
    at org.adempiere.report.jasper.ReportStarter.startProcess(ReportStarter.java:205)
    at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:173)
    at org.compiere.apps.AbstractProcessCtl.startProcess(AbstractProcessCtl.java:359)
    at org.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:238)

The report works correctly in idemppier 7.1, and works correctly in idempiere 9 removing the 3d Bars areas.

Any suggestions?

Andres Lopez Andrade

unread,
Apr 28, 2022, 5:07:26 PM4/28/22
to iDempiere
Did you change the Jasper Studio version?

jen...@gmail.com

unread,
Apr 29, 2022, 4:15:00 AM4/29/22
to iDempiere
It was the 6.6.0, i tried recompiling with the last one, but no avail.

Andres Lopez Andrade

unread,
Apr 29, 2022, 12:21:37 PM4/29/22
to iDempiere
You have to use the latest program compatible with the version you are using, look in the plugins directory for the file net.sf.jasperreports.engine_x_xx_xx there it tells you which version number you can use, in my case it is net.sf.jasperreports.engine_6. 17.0 but I use version 15 and it works perfect

jen...@gmail.com

unread,
May 6, 2022, 4:23:25 AM5/6/22
to iDempiere
I tried even to create a new report, it works correctly with text and tables, but the charts (any chart) won't work, with the same kind of error as above.
The report works correctly in the preview in jaspersoft studio.

What am i missing?

Anozi Mada

unread,
May 6, 2022, 6:30:15 AM5/6/22
to iDempiere
I haven't try this but can you try downgrade the jfreechart in org.adempiere.report.jasper to version 1.0.19 and check if everything is working?

references:

Regards,
Anozi Mada

jen...@gmail.com

unread,
May 26, 2022, 6:06:09 AM5/26/22
to iDempiere
Update: ALL the charts aren't working

Nicolas Micoud

unread,
Aug 1, 2022, 6:11:52 AM8/1/22
to iDempiere

Syed

unread,
Sep 28, 2022, 5:59:56 AM9/28/22
to iDempiere
Is this fixed?

Nicolas Micoud

unread,
Sep 28, 2022, 6:31:21 AM9/28/22
to iDempiere
Hi,
yes, in both v9 and v10

Syed

unread,
Oct 4, 2022, 2:37:59 AM10/4/22
to iDempiere
Thanks nicolas.
whether it is committed to release 9 branch as well?

Syed

unread,
Oct 4, 2022, 2:41:53 AM10/4/22
to iDempiere
Reply all
Reply to author
Forward
0 new messages