Error when running reports in Jasperserver:Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
Issue description:
When trying to run any report on a server, the following error is thrown:
Troubleshooting:
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
-Djava.awt.headless=true
Steps:
- Open the following file in a text editor:
/tomcat_home/bin/setenv.sh
- In the setenv.sh file, add the following options for JAVA_OPTS near the top of the file:
-Djava.awt.headless=true
- Save your changes and restart Tomcat for this change to take effect.
Thank You,
Archana Verma
Helical IT Solutions
Best Open Source Business Intelligence Software Helical Insight is Here
A Business Intelligence Framework
Subscribe
Login
0 Comments