IBM Support

Cannot install oneWEX with "Unable to load and to prepare the installer in console or silent mode." message on RHEL 7

Troubleshooting


Problem

When trying to install oneWEX 12.0.2 single container deployment with console mode on RHEL 7 and certain version of Java, the following error appears on the console and cannot proceed the installation, regardless which installation language to select.

 

Unable to load and to prepare the installer in console or silent mode.

Symptom

Files such as lax-<somenumeric>-err.tmp file is created under /tmp directory on the system, and the file indicate the NPE as follows:

XMLScriptReader: unable to parse the provided script file.  File may have been invalid...
java.lang.NullPointerException
        at Flexeraan9.am(Unknown Source)
        at Flexeraan9.ak(Unknown Source)
        at Flexeraan9$1.aa(Unknown Source)
        at Flexeraais.ad(Unknown Source)
        at Flexeraan9.ac(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.b1(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.a8(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.au(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.consoleInstallMain(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
        at com.zerog.ia.installer.Main.main(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:508)
        at com.zerog.lax.LAX.launch(Unknown Source)
        at com.zerog.lax.LAX.main(Unknown Source)
Unable to load the script.
SHUTDOWN REQUESTED

Cause

This could be a defect of Java, fixed in 1.8.191. See JDK-8188030 : AWT java apps fail to start when some minimal fonts are present for detailed information.

Environment

  • Using Java 1.8.0_112 or higher, especially without GUI on RHEL 7.x.

Diagnosing The Problem

  • You see  "Unable to load and to prepare the installer in console or silent mode."  message when installing oneWEX on console mode.
  • You use the specific version of Java (OpenJDK or IBM JDK) before it's fixed  (1.8.191 would fix the issue).

Resolving The Problem

Update /etc/fonts/local.conf file with following contents (or create it if the file does not exists), and restart the installer.

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

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS8NLW","label":"Watson Explorer"},"Component":"oneWEX","Platform":[{"code":"PF016","label":"Linux"}],"Version":"12.0.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 November 2018

UID

ibm10741057