Answered question

How to resolve java.lang.reflect.InvocationTargetException during installation

Attempting to install a LG on a CentOS VM.

Downloaded neoload_7_2_2_linux_x64.sh and attemped to install with -c option. I tried this on CentOS8 and CentOS7 with the safe results.

Log output:
cat /tmp/install4jError4524253175780090412.log
Exception:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.install4j.runtime.installer.frontend.GUIHelper.invokeOnEDT(GUIHelper.java:719)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:73)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:87)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:56)
at com.install4j.runtime.installer.Installer.main(Installer.java:45)
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(LauncherEngine.java:85)
at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
at install4j.Installer2876059120.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
at com.install4j.runtime.installer.frontend.GUIHelper.invokeOnEDT(GUIHelper.java:715)
... 13 more
Caused by: 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.createEditorPane(AbstractHeadlessScreenExecutor.java:357)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.initFontManager(AbstractHeadlessScreenExecutor.java:309)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.access$400(AbstractHeadlessScreenExecutor.java:28)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor$2.run(AbstractHeadlessScreenExecutor.java:77)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

System properties:

java.runtime.name=OpenJDK Runtime Environment
exe4j.moduleName=/home/userid/neoload_7_2_2_linux_x64.sh
sun.boot.library.path=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/amd64
java.vm.version=25.232-b10
java.vm.vendor=BellSoft
java.vendor.url=http://bell-sw.com/
path.separator=:
java.vm.name=OpenJDK 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=US
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=unknown
install4j.exeDir=/home/userid/
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir
java.runtime.version=1.8.0_232-BellSoft-b10
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/endorsed
os.arch=amd64
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Oracle Corporation
os.name=Linux
exe4j.totalDataLength=369565772
sun.java2d.noddraw=true
sun.jnu.encoding=UTF-8
java.library.path=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/user::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
install4j.launcherId=23914
java.specification.name=Java Platform API Specification
java.class.version=52.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=3.10.0-1062.12.1.el7.x86_64
install4j.swt=false
install4j.cwd=/home/userid
user.home=/root
user.timezone=UTC
java.awt.printerjob=sun.print.PSPrinterJob
install4j.jvmDir=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre
file.encoding=UTF-8
java.specification.version=1.8
java.class.path=i4jruntime.jar:launcher0.jar
user.name=root
java.vm.specification.version=1.8
sun.java.command=install4j.Installer2876059120 -c
java.home=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre
sun.arch.data.model=64
user.language=en
java.specification.vendor=Oracle Corporation
awt.toolkit=sun.awt.X11.XToolkit
java.vm.info=mixed mode
java.version=1.8.0_232
java.ext.dirs=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/ext:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/jre/lib/ext
sun.boot.class.path=/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/resources.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/rt.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/sunrsasign.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/jsse.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/jce.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/charsets.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/lib/jfr.jar:/home/userid/neoload_7_2_2_linux_x64.sh.6027.dir/jre/classes
java.awt.headless=true
install4j.appDir=/home/userid/
java.vendor=BellSoft
file.separator=/
java.vendor.url.bug=https://bugs.openjdk.java.net
sun.font.fontmanager=sun.awt.X11FontManager
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
sun.cpu.isalist=

Christopher S.
Christopher S.

Christopher S.

Level
0
1 / 100
point
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Please look at the NeoLoad documenation here as you need to install additional libraries on your Linux machine.

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful