search cancel

JRE Error When Installing DevTest 10.6.0 on Redhat 7.x: java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)

book

Article ID: 187311

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction

When trying to install the DevTest server on a VM with RedHat Linux 7.x with the command ./devtest_linux_x64.sh -c getting the below error:

Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
java.lang.NullPointerException
        at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
        at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
        at sun.awt.FontConfiguration.init(FontConfiguration.java:107)

 

Cause

This happens when the font directory that Adopt OpenJDK should provide does not exist

Environment

Release : 10.6

Component : CA Service Virtualization

Resolution

Installing fontconfig package in RHEL 7.x server using the below commands:

yum install fontconfig
yum install dejavu-sans-font

After these packages install, you will not get the error installing DevTest.

Additional Information

If you run the above commands and get this warning message:

This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
*** WARNING ***
The subscription for following product(s) has expired:
  <it will list products here>

You no longer have access to the repositories that provide these products.  It is important that you apply an active subscription in order to resume access to security and other critical updates. If You don't have other active subscriptions, you can renew the expired subscription.
No package fontconfig available.
Error: Nothing to do

Reach out to your Linux administrator to renew your subscriptions.