Exception thrown launching SMConsole on RHEL 7.4 after upgrade

Document ID : KB000008615
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

After upgrading to RHEL 7.4 the SMConsole for the Policy Server is not able to be launced due to an exception being thrown.

 

Exception in thread "main" Exception in thread "AWT-EventQueue-0" 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)
...

 

Environment:
RHEL 7.412.7 Policy Server
Cause:

The Global Font config file (/etc/fonts/local.conf )is changed to have the font STIX set as the default. For whatever reason, the STIX fonts does not seem to play well with java and cause exceptions and bad calculated artifacts positioning when using java.awt

Resolution:

You will either need to create or modify the file name /etc/fonts/local.conf in order to force back Utopia as the default font, used by java.

The config file should have the following contents:

 

<?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>