JIRA Charts are causing NoClassDefFoundError FontManager
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
Stack Trace:
java.lang.NoClassDefFoundError: sun.font.FontManager (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:766)
at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment.java:646)
at sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:87)
at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:207)
Cause
The Java environment may not have the needed libraries for the charts.
Resolution
Run JIRA in headless mode:
1
-Djava.awt.headless=true
If the above does not help, try installing the package:
1
yum install libstdc++.so.5
Was this helpful?