Known issue in generating reports in Linux installation

Known issue in generating reports in Linux installation

Error:

Sorry an error has occurred.




It appears to be an issue related to the fonts. JDK recommends installing the font on the Linux machine. In general, OpenJDK installation packages do not include any font files by default. But automatically use available fonts provided by the Operating System as high-quality TTF files. Hence if the operating system doesn't have fonts it shows this error.

Log trace:

[05:17:33:084]|[05-26-2021]|[SYSERR]|[INFO]|[48]:java.lang.Error: Probable fatal error:No fonts found.|

[05:17:33:085]|[05-26-2021]|[SYSERR]|[INFO]|[48]: at sun.font.SunFontManager.getDefaultPhysicalFont(SunFontManager.java:1236)|

[05:17:33:085]|[05-26-2021]|[SYSERR]|[INFO]|[48]: at sun.font.SunFontManager.initialiseDeferredFont(SunFontManager.java:1106)|

[05:17:33:085]|[05-26-2021]|[SYSERR]|[INFO]|[48]: at sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:287)|

[05:17:33:085]|[05-26-2021]|[SYSERR]|[INFO]|[48]: at sun.font.CompositeFont.getSlotFont(CompositeFont.java:376)|

[05:17:33:085]|[05-26-2021]|[SYSERR]|[INFO]|[48]: at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:82)|

 

Solution :

We recommend you install the fonts on Ubuntu and fix this issue.  

RHEL / Centos:

sudo yum install fontconfig dejavu-sans-fonts dejavu-serif-fonts

or

sudo apt-get install ttf-dejavu

or

yum install dejavu*

and

sudo apt-get install fontconfig
or
yum install fontconfig

And restart the ServiceDesk Plus server, once the server is up, restart the ServiceDesk Plus service. 


Please do a complete Server shutdown (the machine where our application is installed)  (not only application restart) and start once and it will fix the case.


Refer: https://stackoverflow.com/questions/14066525/java-lang-error-probable-fatal-errorno-fonts-found/19355276