ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Exception thrown launching SMConsole on RHEL 7.4 after upgrade

book

Article ID: 8615

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

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)
...

 

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

Environment

RHEL 7.412.7 Policy Server

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>