Ticket #11635 (closed defect: fixed)
INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn
|Reported by:||Ringo89||Owned by:|
|Version:||VirtualBox 4.2.10||Keywords:||NAT, INATEngine, redirect, port, forward, addRedirect|
|Host type:||Mac OS X|
I am using the latest vboxjws.jar to use VirtualBox within a Java application.
The relevant machine is in saved state before modifying the redirects. While deleting all existing redirects and adding all new redirects with the code below, there is no exception.
natEngine.removeRedirect(redirectName); natEngine.addRedirect("", NATProtocol.TCP, "", hostPort, "", guestPort);
Starting the machine afterwards, the gui pops up and is terminated immediately again. While waiting until the progress returns completed, the 0x80004004 exception is thrown.
IProgress startProgress = machine.launchVMProcess(session, "gui", null); startProgress.waitForCompletion(15000);
Any attempt to read the machine state after the exception during the startup causes a new 0x800706BE exception.
Using a workaround and calling "VBoxManage modifyvm" to delete and add the NAT redirects works perfectly.
- Summary changed from INATEngine (vboxjws) addRedirect causes crash (0x80004004) to INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn