search cancel

Installs fail on RedHat 7.4 with error: java.lang.ArrayIndexOutOfBoundsException.

book

Article ID: 8370

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

During DevTest installation on a RedHat v7.4 machine, the install fails with an java.lang.ArrayIndexOutOfBoundsException.

Cause

RedHat v7.4 (upgraded from v7.3 or fresh install) comes with package "stix-fonts".

When this package is installed, the default font is changed from "Utopia" to "STIX". 

So, java now default fonts are mapped to "STIX", including the "sans-serif" font family.

The "STIX" fonts do not seem to play well with java and causes exceptions and bad calculated artifact positioning.

 

Environment

All supported DevTest releases and platforms.

Resolution

The default font needs to be changed back to Utopia.

Create this file: /etc/fonts/local.conf

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

Additional Information

You must log out and for your changes to take effect.