CABI EXPORT REPORT SERVER ERROR

Document ID : KB000098131
Last Modified Date : 31/05/2018
Show Technical Document Details
Issue:
Receiving the following error when trying to EXPORT a report (PDF, Excel and CSV) from Jasper installed on Linux:

The server has encountered an error. Please excuse the inconvenience.

Error Message
java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
Resolution:
Add JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true" to the  "<<CA Business Intelligence Installed Directory>>/apache-tomcat/bin/setenv.sh" file and the restart the jasper tomcat server.

JAVA_OPTS="$JAVA_OPTS -Xms4096m -Xmx6144m" 
JAVA_OPTS="$JAVA_OPTS -Xss2m -XX:+UseConcMarkSweepGC" 
JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled" 
JAVA_OPTS="$JAVA_OPTS -Djs.license.directory=/ca/spectrum/SharedComponents/CABI63/apache-tomcat/webapps/jasperserver-pro" 
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true" 
export JAVA_OPTS