Error when running reports in Jasperserver:Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
When trying to run any report on a server, the following error is thrown:
This error is normally associated with a JVM not being started on a Linux machine in AWT headless mode. JasperReports Server doesn’t provide a virtual X frame buffer on Linux. To prevent Java from trying to connect to an X-Server for image processing in JRS, please modify your application server’s startup script to include the following JAVA_OPTS
- Open the following file in a text editor:
- In the setenv.sh file, add the following options for JAVA_OPTS near the top of the file:
- Save your changes and restart Tomcat for this change to take effect.
Helical IT Solutions
Best Open Source Business Intelligence Software Helical Insight is Here