CABI EXPORT REPORT SERVER ERROR
search cancel

CABI EXPORT REPORT SERVER ERROR

book

Article ID: 98131

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

Environment

Release:
Component: SPCJSP

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