Error seen in task results/report results: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

Which IIQ version are you inquiring about?

8.1p2

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

On 2 of our 4 Prod task servers, we are seeing the below error for a few report and aggregation task results. We have started seeing this error recently, there have been no changes to the server or IIQ configuration. Any pointers?

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

Hi @sonali_manhas,

if you didnt any changes on SP you can try to clean cache of SP, restart tomcat or restart servers.

Also, for be sure, check the owner of entire folder of SP and the versions of libraries or if you have some difference between servers are working and servers are not working

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

it seems to be missing import for net.sf.jasperreports.engine.util.JRStyledTextParser.

Check your repository for usages of JRStyledTextParser and check if the import is missing.

2 Likes

Hi @sonali_manhas

Add net.sf.jasperreports.compiler.xml.parser.cache.schemas=false in Java system properties (if tomcat catalina.bat or catalina.sh)

Thanks

Thanks for replying! Where do we add this entry for JBoss?

Thanks for replying, we will check on this!

2 Likes

Hi all - we were able to resolve this issue. From what I understand, font package was not installed on those 2 servers. (turns out there was some change on the servers’ configuration)

Hi Sonali,

What is the package you installed, I am having the same issue.

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