V5.1 : Issue with JasperReport : java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester

1,276 views
Skip to first unread message

Nicolas Micoud

unread,
Nov 4, 2017, 10:44:24 AM11/4/17
to iDempiere
Hi,

Trying to launch a JasperReport (stored as attachment in DB) and get following error :

nov. 04, 2017 3:41:41 PM org.adempiere.util.ProcessUtil startJavaProcess
GRAVE
: org.adempiere.report.jasper.ReportStarter
java
.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
    at net
.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:253)
    at org
.adempiere.report.jasper.ReportStarter.compileReport(ReportStarter.java:1352)
    at org
.adempiere.report.jasper.ReportStarter.processReport(ReportStarter.java:1218)
    at org
.adempiere.report.jasper.ReportStarter.startProcess0(ReportStarter.java:422)
    at org
.adempiere.report.jasper.ReportStarter.startProcess(ReportStarter.java:352)
    at org
.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:172)
    at org
.compiere.apps.AbstractProcessCtl.startProcess(AbstractProcessCtl.java:466)
    at org
.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:272)
    at org
.adempiere.webui.apps.WProcessCtl.process(WProcessCtl.java:197)
    at org
.adempiere.webui.apps.AbstractProcessDialog$ProcessDialogRunnable.doRun(AbstractProcessDialog.java:1083)
    at org
.adempiere.util.ContextRunnable.run(ContextRunnable.java:38)
    at org
.adempiere.webui.apps.DesktopRunnable.run(DesktopRunnable.java:40)
    at java
.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java
.util.concurrent.FutureTask.run(Unknown Source)
    at java
.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
    at java
.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java
.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java
.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java
.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.digester.Digester cannot be found by net.sf.jasperreports.engine_6.3.1
    at org
.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
    at org
.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org
.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org
.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java
.lang.ClassLoader.loadClass(Unknown Source)
   
... 19 more

A java class insert data in a temp table and those records are displayed in the report.

Thanks,

Nicolas

Nicolas Micoud

unread,
Nov 6, 2017, 4:25:08 AM11/6/17
to iDempiere

Hi,

Checking further, i found net.sf.jasperreports.engine_6.3.1.jar in \targetPlatform\plugins.
I extracted its content but was unable to found org.apache.commons.digester.Digester
In the org package, there is only a w3c package.



How can it be possible ?

Any idea ?

Thanks,

Nicolas

Nicolas Micoud

unread,
Nov 6, 2017, 4:30:04 AM11/6/17
to iDempiere
In the targetPlatorm directory, i can find a "org.apache.commons.digester_2.1.0.jar"

Nicolas Micoud

unread,
Nov 6, 2017, 4:39:41 AM11/6/17
to iDempiere
Ok...

The jar was not loaded by my launcher !!!! (the checkbox was not ticked whereas i push the "Add required plugin-ins" button.

Now, another error :

Caused by: java.lang.ClassNotFoundException: com.lowagie.text.DocumentException cannot be found by net.sf.jasperreports.engine_6.3.1


Probably another deployment issue

Nicolas Micoud

unread,
Nov 6, 2017, 5:19:10 AM11/6/17
to iDempiere
2 other jars were not loaded :-/
com.itextpdf
com.jaspersoft.studio.bundles.itext

And, now jasper reports can be launched again !

Nicolas

Hiep Lq

unread,
Nov 6, 2017, 6:45:54 AM11/6/17
to Mohemmed Bilal Ilyas

Nicolas, use this feature to sync your launch IDEMPIERE-3353

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/186eb2ee-1410-4709-814d-105f4c8d2ff0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam
Reply all
Reply to author
Forward
0 new messages