Error generating any reports in Spectrum Report Manager
search cancel

Error generating any reports in Spectrum Report Manager

book

Article ID: 189535

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The following error is seen when generating any reports in Spectrum Report Manager (SRM) installed on Linux:

Error Message

There was an error on the server. Try again or contact site administrators. (Error UID: 4197cd12-6b0c-49e9-9400-ef126315078)

The following error is seen in the jasperserver.log on the Jasper server:

2020-03-06 09:16:37,104 ERROR ErrorPageHandlerAction,http-nio-80-exec-15:115 - Error UID 0919ea29-9e1d-4431-8363-9e555c898928
com.jaspersoft.jasperserver.api.JSException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
...
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

Environment

Release : Any version of Spectrum integrated with Jasper

Component : Spectrum Core / SpectroSERVER

Resolution

Add the following parameter to the  <CABI INSTALL DIRECTORY>/apache-tomcat/bin/setenv.sh file on the Jasper system and reboot the Jasper system.

JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"

If that does not resolve the issue, then it is recommended to install fontconfig and dejavu-serif-fonts by running the following command on the Jasper system as the root user and then reboot the Jasper system.

yum install fontconfig

yum install dejavu-serif-fonts