Connect to VBox using WebService problem

Discussions related to using the OSE version of VirtualBox.
Locked
liupengjian
Posts: 20
Joined: 29. Sep 2008, 03:54

Connect to VBox using WebService problem

Post by liupengjian »

Hi,
I am using SDK's sample code clienttest.java to connect to VBox web server, but when I run the code I have strange error here:

Code: Select all

 
Exception in thread "main" javax.xml.ws.WebServiceException: org.virtualbox.service.InvalidObjectFaultMsg: VirtualBox error: Invalid managed object reference ""
	at com.sun.xml.ws.commons.virtualbox.IVirtualBox.getVersion(IVirtualBox.java:42)
	at clienttest.<init>(clienttest.java:26)
	at clienttest.main(clienttest.java:211)
Caused by: org.virtualbox.service.InvalidObjectFaultMsg: VirtualBox error: Invalid managed object reference ""
	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:494)
	at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:127)
	at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
	at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
	at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
	at $Proxy39.iVirtualBoxGetVersion(Unknown Source)
	at com.sun.xml.ws.commons.virtualbox.IVirtualBox.getVersion(IVirtualBox.java:39)
	... 2 more
I ran it using java clienttest test or java clienttest show vms all have same error. anyone can help?

Thanks
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Since you've already added a PS to another post on this, I hope that you don't mind me locking this one.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Locked