Description of the issue:
When deploying WebDashboard into a Red Hat Enterprise version 7.4 or above, the dashboard when accessed through the interface is blank (white) and java error is displayed in the Webdashboard.log
2019-01-22 13:06:19 DashboardExecutorService [ERROR] Uncaught exception thrown...
java.lang.ArrayIndexOutOfBoundsException: 0
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:359)
at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:350)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:302)
at sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:855)
at com.itrsgroup.guicomponents.diagramcanvas.CanvassObjectGrouping.renderCanvassObjectGrouping(Unknown Source)
at com.itrsgroup.swing.activedashboardmanager.DashboardObject.renderCanvassObjectGrouping(Unknown Source)
have a look here for more information
https://bugzilla.redhat.com/show_bug.cgi?id=1479563
Solution:
You can try one of the following
1. Install an additional font (try "dejavu-serif-fonts" as a start)
2. Replace STIX with a non CFF one ("the JDK specifically needs Type 1 and TrueType fonts, while CFF are OpenType Type 2 fonts")
3. Create a /etc/fonts/local.conf file to force back Utopia
as the default font, used by java.
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>dialog</family>
<prefer><family>Utopia</family></prefer>
</alias>
<alias>
<family>dialoginput</family>
<prefer><family>Utopia</family></prefer>
</alias>
</fontconfig>
Comments
0 comments
Please sign in to leave a comment.