Error connecting VirtualBoxManager with Web Service (Java)
Posted: 30. Sep 2016, 13:28
Virtualbox version = 5.0.26
Virtualbox API version = 5_0
Connection type =Webserver
Language used = Java
OS = OS X 10.11.6
Hi there! I'm encountering a problem trying to connect my Java program to the local VBox web server. (Note: I obviously already started the vboxwebsrv)
This is the error occured:
I simply tried to establish a connection to the local web server as stated in SDKref pdf and in the sample code (TestVBox.java shipped with SDK):
I tried to use even the TestVBox program (passing as parameter -w ) and same error occurs.
It seems like I'm doing something wrong, anyone could help me?
Is there anyone who use the local VBox Java web server, and how?
Virtualbox API version = 5_0
Connection type =Webserver
Language used = Java
OS = OS X 10.11.6
Hi there! I'm encountering a problem trying to connect my Java program to the local VBox web server. (Note: I obviously already started the vboxwebsrv)
This is the error occured:
Code: Select all
org.virtualbox_5_0.VBoxException: Connect doesn't make sense for local bindings
at org.virtualbox_5_0.VirtualBoxManager.connect(VirtualBoxManager.java:51)
at utils.TestVBox.main(TestVBox.java:243)
Cannot connect, start webserver first!
Code: Select all
private VirtualBoxManager vboxm= null;
final String location = localLoc
String username = null;
String password = null;
vboxm = VirtualBoxManager.createInstance(null);
try {
vboxm.connect(location, username, password);
} catch (VBoxException e) {
e.printStackTrace();
System.out.println("Cannot connect, start webserver first!");
}
It seems like I'm doing something wrong, anyone could help me?
Is there anyone who use the local VBox Java web server, and how?