Forum Discussion

nmizar's avatar
nmizar
Occasional Contributor
16 years ago

[RESOLVED]Cannot run soapui 3.0.1

Hi folks,

I have downloaded and installed SOAP UI 3.0.1 onto my Ubuntu 9.04 "Jaunty Jackalope". When I try to run it, an error occurs (basically, java.lang.RuntimeException: java.lang.InternalError: libXt loaded before libXm). Nevertheless, SOAP UI 3.0 works fine (though I would prefere 3.0.1 with its whole set of improvements)

Any help or hints will be appreciated.

Thanks in advance,

                                     *Nacho*

P.S. I have sent a similar message to sourceforge, though I guess this forum is its right place to be, isn't it?
P.P.S. My apologies if the stack trace dump is not an accepted practice in this forum.

complete stack trace:

java.lang.RuntimeException: java.lang.InternalError: libXt loaded before libXm at com.teamdev.xpcom.Xpcom.initialize(SourceFile:180) at com.teamdev.xpcom.Xpcom.initialize(SourceFile:84) at com.eviware.soapui.support.components.BrowserComponent.initialize(BrowserComponent.java:122) at com.eviware.soapui.SoapUI.main(SoapUI.java:640) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.Launcher.main(Unknown Source) Caused by: java.lang.InternalError: libXt loaded before libXm at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Unknown Source) at java.awt.Toolkit.(Unknown Source) at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform$a.(SourceFile:34) at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform.(SourceFile:152) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.teamdev.xpcom.impl.G.b(SourceFile:69) at com.teamdev.xpcom.impl.G.getInstance(SourceFile:36) at com.teamdev.xpcom.c.run(SourceFile:145) java.lang.InternalError: libXt loaded before libXm at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(Unknown Source) at sun.awt.DebugHelper.(Unknown Source) at java.awt.EventQueue.(Unknown Source) at javax.swing.SwingUtilities.invokeLater(Unknown Source) at com.eviware.soapui.SoapUI.main(SoapUI.java:645) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.Launcher.main(Unknown Source) java.lang.NoClassDefFoundError: Could not initialize class sun.awt.DebugHelper at java.awt.Component.(Unknown Source) at com.exe4j.runtime.LauncherEngine.handleFailure(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.Launcher.main(Unknown Source) Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.exe4j.runtime.util.InternalErrorFrame at com.exe4j.runtime.LauncherEngine.handleFailure(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.Launcher.main(Unknown Source) Exception in thread "XpcMessageLoop" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform$a.(SourceFile:34) at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform.(SourceFile:152) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.teamdev.xpcom.impl.G.b(SourceFile:69) at com.teamdev.xpcom.impl.G.getInstance(SourceFile:36) at com.teamdev.xpcom.impl.G.initialize(SourceFile:81) at com.teamdev.xpcom.c.run(SourceFile:159) Exception in thread "XpcShutdownThread" java.lang.IllegalStateException: Message loop is not initialized. Please call initAWT() or initSWT() first at com.teamdev.xpcom.impl.F.h(SourceFile:28) at com.teamdev.xpcom.Xpcom.a(SourceFile:37) at com.teamdev.xpcom.a.run(SourceFile:123)
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi

    It's a known issue connected to using jxbrowser on linux. Please try adding
    -Dsoapui.jxbrowser.disable="true"
    to bin/soapui.vmoptions and that should solve your problem.

    Regards,
    /Dragica
    eviware.com
  • nmizar's avatar
    nmizar
    Occasional Contributor
    Hi Dragica,

    Thanks for your reply! Unfortunately, adding the line you suggested has not worked: once again, the lib-loaded-in-wrong-error has occurred: "Runtime link error - it appears that libXt got loaded before libXm, which is not allowed"

    Any other ideas I could try?

    Thanks a lot. Regards,

                                              Nacho
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    What java version are you using?
    Could you please try downloading standalone binary distribution, which has java included, to see if the same happens?

    Regards,

    /Dragica
    eviware.com
  • nmizar's avatar
    nmizar
    Occasional Contributor
    Hi Dragica,

    My jvm version is Sun's 1.6.0_16b01:

    $ java -version
    java version "1.6.0_16"
    Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
    Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)


    Did you mean the .bin version or the .sh installer? I had it installed using the sh archive. Nevertheless, I have downloaded the .bin version, ran the soapui.sh and the same exception occurs:


    $ ./soapui.sh
    ================================
    =
    = SOAPUI_HOME = /opt/tools/soapUI/soapui-3.0.1
    =
    ================================

    Runtime link error - it appears that libXt got loaded before libXm,
    which is not allowed.
    java.lang.RuntimeException: java.lang.InternalError: libXt loaded before libXm
    at com.teamdev.xpcom.Xpcom.initialize(SourceFile:180)
    at com.teamdev.xpcom.Xpcom.initialize(SourceFile:84)
    at com.eviware.soapui.support.components.BrowserComponent.initialize(BrowserComponent.java:122)
    at com.eviware.soapui.SoapUI.main(SoapUI.java:640)
    Caused by: java.lang.InternalError: libXt loaded before libXm
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1695)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1592)
    at java.awt.Toolkit.(Toolkit.java:1614)
    at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform$a.(SourceFile:34)
    at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform.(SourceFile:152)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.teamdev.xpcom.impl.G.b(SourceFile:69)
    at com.teamdev.xpcom.impl.G.getInstance(SourceFile:36)
    at com.teamdev.xpcom.c.run(SourceFile:145)
    Exception in thread "XpcMessageLoop" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
    at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform$a.(SourceFile:34)
    at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform.(SourceFile:152)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.teamdev.xpcom.impl.G.b(SourceFile:69)
    at com.teamdev.xpcom.impl.G.getInstance(SourceFile:36)
    at com.teamdev.xpcom.impl.G.initialize(SourceFile:81)
    at com.teamdev.xpcom.c.run(SourceFile:159)

    Runtime link error - it appears that libXt got loaded before libXm,
    which is not allowed.
    Exception in thread "main" java.lang.InternalError: libXt loaded before libXm
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1695)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
    at sun.awt.DebugHelper.(DebugHelper.java:29)
    at java.awt.EventQueue.(EventQueue.java:80)
    at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1264)
    at com.eviware.soapui.SoapUI.main(SoapUI.java:645)
    Exception in thread "XpcShutdownThread" java.lang.IllegalStateException: Message loop is not initialized. Please call initAWT() or initSWT() first
    at com.teamdev.xpcom.impl.F.h(SourceFile:28)
    at com.teamdev.xpcom.Xpcom.a(SourceFile:37)
    at com.teamdev.xpcom.a.run(SourceFile:123)

    Regards,

                        Nacho

    P.S.
  • I might be wrong but is that the one available at www.soapui.org (first image on the left
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    if you installed bin version and starting it with soapui.sh than edit soapui.sh file like this:

    uncomment this line
    #  JAVA_OPTS="$JAVA_OPTS -Dsoapui.jxbrowser.disable=true"
    ie remove leading #


    Hope this helps
    Regards Nebojsa
  • nmizar's avatar
    nmizar
    Occasional Contributor
    Hello Nebojsa,

    Thanks a lot for your help: it works fine! 

    Cheers,

                      Nacho