Tech Tips: DevTest installation on a RedHat v7.4 machine fails with an java.lang.ArrayIndexOutOfBoundsException

Document created by MarcyNunns Employee on Feb 13, 2018
Version 1Show Document
  • View in full screen mode

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

 

Environment:
All supported DevTest releases on RedHat v7.4

 

Note: RedHat v7.4 is not a supported OS with DevTest.

 

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.

 

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>


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

 

KB: https://support.ca.com/us/knowledge-base-articles.tec1217465.html

Attachments

    Outcomes