Service Virtualization

Expand all | Collapse all

Null pointer exception on installing DevTest 10.6

  • 1.  Null pointer exception on installing DevTest 10.6

    Posted 08-21-2020 06:10 AM
    Hi , i'm getting below error while executing the script file for DevTest 10.6 installation on Linux Machine.
    Same server has 10.4 running already. Here is the java version details. Any idea ?

    which java

    /usr/local/java/jre-adopt_11.0.2.9/bin/java

    java -version

    openjdk version "11.0.2" 2019-01-15
    OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.2+9)
    OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.2+9, mixed mode)

    Error on installation:


    sh devtest_linux_x64.sh
    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)
    at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
    at sun.font.SunFontManager$2.run(SunFontManager.java:431)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.SunFontManager.<init>(SunFontManager.java:376)
    at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
    at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
    at sun.font.SunFontManager.getInstance(SunFontManager.java:250)
    at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
    at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1125)
    at javax.swing.JComponent.getFontMetrics(JComponent.java:1626)
    at javax.swing.text.WrappedPlainView.updateMetrics(WrappedPlainView.java:318)
    at javax.swing.text.WrappedPlainView.updateChildren(WrappedPlainView.java:297)
    at javax.swing.text.WrappedPlainView.insertUpdate(WrappedPlainView.java:463)
    at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1610)
    at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1869)
    at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
    at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
    at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
    at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
    at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:273)
    at javax.swing.JEditorPane.setText(JEditorPane.java:1416)
    at javax.swing.JEditorPane.<init>(JEditorPane.java:290)
    at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source)
    at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source)
    at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source)
    at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source)
    at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source)
    at com.install4j.runtime.installer.Installer.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
    An error occurred:
    java.lang.NullPointerException
    Error log: /tmp/install4jError1091460049968418797.log
    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)
    at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
    at sun.font.SunFontManager$2.run(SunFontManager.java:431)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.SunFontManager.<init>(SunFontManager.java:376)
    at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
    at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
    at sun.font.SunFontManager.getInstance(SunFontManager.java:250)
    at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
    at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1125)
    at javax.swing.JComponent.getFontMetrics(JComponent.java:1626)
    at javax.swing.text.WrappedPlainView.updateMetrics(WrappedPlainView.java:318)
    at javax.swing.text.WrappedPlainView.updateChildren(WrappedPlainView.java:297)
    at javax.swing.text.WrappedPlainView.insertUpdate(WrappedPlainView.java:463)
    at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1610)
    at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1869)
    at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
    at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
    at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
    at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
    at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:273)
    at javax.swing.JEditorPane.setText(JEditorPane.java:1416)
    at javax.swing.JEditorPane.<init>(JEditorPane.java:290)
    at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(Unknown Source)
    at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(Unknown Source)
    at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(Unknown Source)
    at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source)
    at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source)
    at com.install4j.runtime.installer.Installer.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)


  • 2.  RE: Null pointer exception on installing DevTest 10.6

    Posted 08-21-2020 06:40 AM
    Hi Naga,

    check below :
    1. permissions on the .sh file
    2. Do you have gnome/x-windows installed on your linux instance

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 3.  RE: Null pointer exception on installing DevTest 10.6

    Posted 08-21-2020 07:35 AM
    Hi Vaibhav,

    All read/write permissions are given to .sh file, and no gnome/x-windows installed on linux

    ------------------------------
    Raji
    ------------------------------



  • 4.  RE: Null pointer exception on installing DevTest 10.6

    Broadcom Employee
    Posted 08-21-2020 01:39 PM
    HI Raji
             Please follow the steps below. ( presuming your OS is Redhat)

    yum install fontconfig

    And then install DevTest


    --
    regards
    Sankar Natarajan





  • 5.  RE: Null pointer exception on installing DevTest 10.6

    Posted 08-23-2020 11:06 PM
    Hi Sankar,

    We did not install anything for 10.4 and 10.5 versions. Can you please help the requirement here to install below for 10.6 on Linux machines ?

    yum install fontconfig

    And then install DevTest



    ------------------------------
    Raji
    ------------------------------



  • 6.  RE: Null pointer exception on installing DevTest 10.6

    Broadcom Employee
    Posted 08-23-2020 11:34 PM
    Hi Raji,
        In Devtest 10.6, we moved from Java Jdk to OpenJDK which requires fontconfig on linux server. In general, Linux has bundled with fontconfig model. But in some linux OS, we noticed that this was not bundled. So, please install fintconfig module using yum command and then install Devtest.

    Thanks,
    Srikanth



  • 7.  RE: Null pointer exception on installing DevTest 10.6

    Broadcom Employee
    Posted 08-23-2020 11:42 PM
    Raji,  You can refer below article for more information:

    https://knowledge.broadcom.com/external/article?articleId=187311



  • 8.  RE: Null pointer exception on installing DevTest 10.6

    Posted 08-24-2020 12:24 AM
    Thanks Srikanth and Sankar,

    I checked OS of my server and it is Oracle Linux. Let me check internally to add this fontconfig as only Linux admins have access.

    ------------------------------
    Raji
    ------------------------------



  • 9.  RE: Null pointer exception on installing DevTest 10.6

    Broadcom Employee
    Posted 08-24-2020 12:44 AM
    Thanks Raji.
     As explained in article, please share below commands with your admin team to install font modules on Linux.

    yum install fontconfig
    yum install dejavu-sans-font

    Thanks,
    Srikanth