Forum Discussion

helene's avatar
helene
New Contributor
16 years ago

Failed to register JavaXPCOM methods

Hi,

I try to launch the soapui.sh script, in order to use soapUI3.0.
But when the soapui.sh starts, an error is raised :

org.mozilla.xpcom.XPCOMException: Failed to register JavaXPCOM methods  (0x80004005)
        at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethodsNative(Native Method)
        at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods(JavaXPCOMMethods.java:60)
        at org.mozilla.xpcom.internal.MozillaImpl.initialize(MozillaImpl.java:48)
        at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:668)
        at com.teamdev.xpcom.Xpcom.a(SourceFile:37)
        at com.teamdev.xpcom.c.run(SourceFile:139)
Exception in thread "XpcMessageLoop" java.lang.UnsatisfiedLinkError: org.mozilla.xpcom.internal.XPCOMImpl.getServiceManager()Lorg/mozilla/interfaces/nsIServiceManager;
        at org.mozilla.xpcom.internal.XPCOMImpl.getServiceManager(Native Method)
        at org.mozilla.xpcom.Mozilla.getServiceManager(Mozilla.java:867)
        at com.teamdev.xpcom.XPCOMManager.(SourceFile:67)
        at com.teamdev.xpcom.XPCOMManager.getInstance(SourceFile:36)
        at com.teamdev.xpcom.impl.awt.a$a.(SourceFile:22)
        at com.teamdev.xpcom.impl.awt.linux.AwtLinuxPlatform.(SourceFile:151)
        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:154)
java.lang.RuntimeException: java.lang.IllegalStateException: Message loop is not initialized. Please call initAWT() or initSWT() first
        at com.teamdev.xpcom.Xpcom.initialize(SourceFile:175)
        at com.teamdev.xpcom.Xpcom.initialize(SourceFile:79)
        at com.eviware.soapui.support.components.BrowserComponent.(BrowserComponent.java:88)
        at com.eviware.soapui.ui.URLDesktopPanel.(URLDesktopPanel.java:33)
        at com.eviware.soapui.SoapUI.showPushPage(SoapUI.java:1054)
        at com.eviware.soapui.SoapUI$3.run(SoapUI.java:696)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


I'm running it under Linux. Does anybody have a solution to this problem ?

Thank you very much :-)

Helene

4 Replies

  • Hello,

    try with adding -Dsoapui.jxbrowser.disable=true to JAVA_OPTS in soapui.sh. What distribution are using?

    robert
  • helene's avatar
    helene
    New Contributor
    no matter, i will try an other webservice ......
  • Great Post. I am using Windows XP and soapui-3.6.1-win32-standalone-bin, and facing same issue, when trying to open a request in request editor. Error : [Exception in thread "XpcMessageLoop" java.lang.UnsatisfiedLinkError], now its resolved.

    [1] Go to installation location C:\soapui-3.6.1-win32-standalone-bin\soapui-3.6.1-Wiki\bin
    [2] Open soapui.bat in note pad.
    [3] Add "-Dsoapui.jxbrowser.disable=true" mention in JAVA_OPTS
    set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dsoapui.jxbrowser.disable=true "-Dsoapui.home=%SOAPUI_HOME%\"
    [4] Delete .JxBrowser folder from C:\Documents and Settings\admin\
    [5] Restart SoapUI.


    It is working now according to expectation.