NoClassDefFoundError on JRStyledTextParser (initialization failure)

0

Hello All,

 

We have been moving our internal application towards a new machine. Unfortunattely we aren't able to generate any Jasper Reports document any more. Any attempt results in a no class def found error.

I've found some similar tickets but without a real solution. I presume it's machine related but it there some kind of checklist or entry point to start out research.  (Machine itself is Unix/Linux based)

Rgrds

Code:
Caused by: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)
 at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:174)
 at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)
 at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:56)
 at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:143)
 at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:53)
 at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
 at be.sofico.basecamp.sys.document.engines.SofJasperReportEngine.generateDocument(SofJasperReportEngine.java:160)
 at be.sofico.basecamp.sys.document.DocumentMgrBean.generateDocument(DocumentMgrBean.java:691)
 ... 31 more
Root cause: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
Stacktrace:
java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)
 at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:174)
 at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)
 at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:56)
 at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:143)
 at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:53)
 at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
fenix4life's picture
Joined: Oct 5 2009 - 5:27am
Last seen: 3 years 3 months ago

1 Answer:

0
Issue found.
More information can be found on the following page -> http://stackoverflow.com/questions/3628302/jasperreports-noclassdeffounderror-exception-on-net-sf-jasperreports-engine-util

In short it's the property java.awt.headless that needs to be changed
fenix4life's picture
Joined: Oct 5 2009 - 5:27am
Last seen: 3 years 3 months ago
Feedback
randomness