Getting Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

Which IIQ version are you inquiring about?

8.4p1

Please share any other relevant files that may be required (for example, logs).

2024-09-12T02:52:05,119 ERROR https-jsse-nio-19689-exec-19 sailpoint.web.util.SailPointActionListener:44 - Caught unhandled JSF exception: #{analyzeController.searchBean.exportToCSV}: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

javax.faces.FacesException: #{analyzeController.searchBean.exportToCSV}: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) ~[javax.faces-2.2.20.jar:2.2.20]

at sailpoint.web.util.SailPointActionListener.processAction(SailPointActionListener.java:42) [identityiq.jar:8.4p1 Build e243e6f4783-20240325-035201]

at javax.faces.component.UICommand.broadcast(UICommand.java:315) [javax.faces-2.2.20.jar:2.2.20]

at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790) [javax.faces-2.2.20.jar:2.2.20]

at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282) [javax.faces-2.2.20.jar:2.2.20]

at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [javax.faces-2.2.20.jar:2.2.20]

Share all details about your problem, including any error messages you may have received.

I am using Mariner OS with JDK 11 version and 8.4p1 - When I try export the report from advance analytics, I am getting the above error. Is this something updated in 8.4 version ?

i have noticed, people had suggested for installing fonts / set the net.sf.jasperreports.compiler.xml.parser.cache.schemas=false " in catalina.bat. It was working in 8.1 p5 with JDK 8 and Mariner OS. Am i missing something?

Iā€™m not certain, but I found a similar issue in the Jasper community. I thought it might be helpful to see if the information there is relevant.

https://community.jaspersoft.com/knowledgebase/troubleshooting/error-when-running-reports-could-not-initialize-class/

Thanks @vedeepak - As mentioned, My production is running on linux (8.1p5) and its working without adding this -Djava.awt.headless=true.

1 Like

I think this is package which is missing .

yum install fontconfig
or
apt install fontconfig

or if you using setEnv.sh try adding below line .

export CATALINA_OPTS="$CATALINA_OPTS -Dnet.sf.jasperreports.compiler.xml.parser.cache.schemas=false"

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.