Time-related gadgets and reports throw internal server error with Jira server hosted on RHEL 7

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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



Problem

All time-related gadgets and reports such as Time Since Chart, Average Chart and etc will not load with the message "An internal server error occurred when requesting resource" shown instead.

The following appears in the atlassian-jira.log.

2017-09-04 19:54:11,205 http-nio-8080-exec-6 ERROR admin 1194x753x1 ae48vd 10.252.221.186,10.60.1.104 /rest/gadget/1.0/averageage/generate [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: 0
java.lang.ArrayIndexOutOfBoundsException: 0
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
at sun.font.Font2D.getFontMetrics(Font2D.java:415)
at java.awt.Font.defaultLineMetrics(Font.java:2176)
at java.awt.Font.getLineMetrics(Font.java:2246)
 
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at sun.font.CompositeFont.getSlotFont(CompositeFont.java:351) at sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81) at sun.font.CompositeGlyphMapper.<init>(CompositeGlyphMapper.java:62) at sun.font.CompositeFont.getMapper(CompositeFont.java:409) at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:1122) at sun.font.StandardGlyphVector
2018-01-25 10:56:55,206 http-nio-8080-exec-24 ERROR sysadmin 656x907x1 15kcvf5 10.38.131.222,0:0:0:0:0:0:0:1 /secure/admin/monitor_database.jspa [c.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.ArrayIndexOutOfBoundsException: 0
java.lang.ArrayIndexOutOfBoundsException: 0
    at sun.font.CompositeFont.getSlotFont(CompositeFont.java:340)
    at sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81)
    at sun.font.CompositeGlyphMapper.<init>(CompositeGlyphMapper.java:62)
    at sun.font.CompositeFont.getMapper(CompositeFont.java:398)
    at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:1122)
    at sun.font.StandardGlyphVector.<init>(StandardGlyphVector.java:172)
    at java.awt.Font.getStringBounds(Font.java:2421)
    at java.awt.Font.getStringBounds(Font.java:2331)
    at java.awt.Font.getStringBounds(Font.java:2365)
    at org.rrd4j.graph.ImageWorker.getStringWidth(ImageWorker.java:150)
    at org.rrd4j.graph.RrdGraph.getSmallFontCharWidth(RrdGraph.java:587)
    at org.rrd4j.graph.RrdGraph.initializeLimits(RrdGraph.java:310)
    at org.rrd4j.graph.RrdGraph.createGraph(RrdGraph.java:75)
    at org.rrd4j.graph.RrdGraph.<init>(RrdGraph.java:46)
    at com.atlassian.jira.plugins.monitor.database.MonitorDatabase.createImageFile(MonitorDatabase.java:146)
    at com.atlassian.jira.plugins.monitor.database.MonitorDatabase.createGraphs(MonitorDatabase.java:100)
    at com.atlassian.jira.plugins.monitor.database.MonitorDatabase.getGraphs(MonitorDatabase.java:76)

Diagnosis

Environment

  • RHEL 7.4
  • RHEL 7.5

Workaround

Please refer to this discussion thread: ArrayIndexOutOfBoundsException in sun.font.CompositeStrike.getStrikeForSlot and if it does not fix the issue, ensure to install dejavu-serif-fonts by running the following command:

sudo yum install dejavu-serif-fonts



Last modified on Mar 20, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.