java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
at net.sf.jasperreports.engine.fill.JRBaseFiller.
at net.sf.jasperreports.engine.fill.JRVerticalFiller.
at net.sf.jasperreports.engine.fill.JRVerticalFiller.
at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:200)
at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:215)
Truncated. see log file for complete stacktrace
...
...
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
at net.sf.jasperreports.engine.util.JRStyledTextParser.
at net.sf.jasperreports.engine.fill.JRBaseFiller.
at net.sf.jasperreports.engine.fill.JRVerticalFiller.
at net.sf.jasperreports.engine.fill.JRVerticalFiller.
at net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:200)
at net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:215)
at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:115)
at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:667)
at cl.ejemplo.common.reporteria.service.impl.ReporteriaServiceJasperImpl.construirBarFooReporte(ReporteriaServiceJasperImpl.java:306)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
This is solved by adding the following argument to WLS script:
-Djava.awt.headless=true
No comments :
Post a Comment