Forum Discussion

andrewpmast's avatar
andrewpmast
Contributor
14 years ago

[Resolved] java.lang.reflect.InvocationTargetException?

What am I doing wrong?

I installed the latest LOADUI (snapshot too) on Ubuntu 11.04, but when I launch LOADUI, I get a java pop-up that looks like the attached image. I never have this type of problem running soapui, so I'm confused.

The Application Error details for Launch File text reads:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:." href="loadUI.jnlp">
<information>
<title>loadUI</title>
<vendor>eviware</vendor>
<homepage href="http://www.loadui.org/"/>
<description>loadUI</description>
<offline-allowed/>
</information>

<resources>
<j2se version="1.6+" java-vm-args="-Xms128m -Xmx768m -XX:MaxPermSize=128m -Dsun.java2d.noddraw=true"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.3/javafx-rt.jnlp"/>
<jar href="lib/loadui-launcher-1.0.2-SNAPSHOT.jar" main="true"/>
<jar href="lib/org.apache.felix.main-3.0.9-patched.jar"/>
<jar href="lib/commons-cli-1.2.jar"/>
<jar href="lib/jna-3.2.7.jar"/>
<jar href="lib/platform-3.2.7.jar"/>
</resources>
<security>
<all-permissions/>
</security>
<application-desc main-class="com.eviware.loadui.launcher.LoadUILauncher" />
<update check="timeout" policy="always" />
</jnlp>


The Application Error details for Exception reads:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1804)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1512)
at com.sun.javaws.Launcher.run(Launcher.java:130)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'X11': libX11.so: cannot open shared object file: No such file or directory
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:379)
at com.sun.jna.Native.loadLibrary(Native.java:364)
at com.sun.jna.platform.unix.X11.<clinit>(X11.java:347)
at com.sun.jna.platform.WindowUtils$X11WindowUtils.getAlphaVisualIDs(WindowUtils.java:1221)
at com.sun.jna.platform.WindowUtils$X11WindowUtils.isWindowAlphaSupported(WindowUtils.java:1171)
at com.sun.jna.platform.WindowUtils$X11WindowUtils.setWindowTransparent(WindowUtils.java:1403)
at com.sun.jna.platform.WindowUtils.setWindowTransparent(WindowUtils.java:1549)
at com.eviware.loadui.launcher.api.SplashController.openSplash(SplashController.java:27)
at com.eviware.loadui.launcher.LoadUILauncher.processCommandLine(LoadUILauncher.java:222)
at com.eviware.loadui.launcher.LoadUILauncher.init(LoadUILauncher.java:151)
at com.eviware.loadui.launcher.LoadUILauncher.main(LoadUILauncher.java:62)
... 9 more

amast@VOX:~/eviware/loadUI-1.0.2-SNAPSHOT$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

  • Hi,

    I'm also facing the same issue although the problem seems to be related to XRender. I've installed on earlier Ubuntu version with no issues so it seems to be related specifically to 11.04:

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:1804)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
    at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1512)
    at com.sun.javaws.Launcher.run(Launcher.java:130)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'Xrender': libXrender.so: cannot open shared object file: No such file or directory
    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
    at com.sun.jna.Library$Handler.<init>(Library.java:140)
    at com.sun.jna.Native.loadLibrary(Native.java:379)
    at com.sun.jna.Native.loadLibrary(Native.java:364)
    at com.sun.jna.platform.unix.X11$Xrender.<clinit>(X11.java:273)
    at com.sun.jna.platform.WindowUtils$X11WindowUtils.getAlphaVisualIDs(WindowUtils.java:1242)
    at com.sun.jna.platform.WindowUtils$X11WindowUtils.isWindowAlphaSupported(WindowUtils.java:1171)
    at com.sun.jna.platform.WindowUtils$X11WindowUtils.setWindowTransparent(WindowUtils.java:1403)
    at com.sun.jna.platform.WindowUtils.setWindowTransparent(WindowUtils.java:1549)
    at com.eviware.loadui.launcher.api.SplashController.openSplash(SplashController.java:27)
    at com.eviware.loadui.launcher.LoadUILauncher.processCommandLine(LoadUILauncher.java:222)
    at com.eviware.loadui.launcher.LoadUILauncher.init(LoadUILauncher.java:151)
    at com.eviware.loadui.launcher.LoadUILauncher.main(LoadUILauncher.java:62)
    ... 9 more
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    This will be fixed in loadUI 1.5 final, which will be out tomorrow.

    Sorry for the delay.

    /Henrik
    eviware.com
  • eviware support wrote:
    This will be fixed in loadUI 1.5 final, which will be out tomorrow. Sorry for the delay.
    /Henrik
    eviware.com


    Thanks for replying. I'll test it and confirm tomorrow.
  • eviware support wrote:
    This will be fixed in loadUI 1.5 final, which will be out tomorrow.
    eviware.com


    I ran the installer on Ubuntu (11.04) and no longer got this error. Thanks!