When executing a report from Advanced Reporting, an error is thrown. The following message is visible in the jasperserver.log:
java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
Missing fonts in the Virtual Machine that hosts Jaspersoft Server.
Jaspersoft Server can use any of the fonts available to its JVM. Fonts available to the JVM can be determined by executing a Java Program.
To solve the issue:
Following is a sample set of steps on how fonts can be installed in Rocky Linux:
sudo dnf install redhat-display-fonts
sudo dnf install redhat-mono-fonts
sudo dnf install redhat-text-fonts
sudo dnf install fontconfig
fc-cache -f -v