Opened 12 years ago
Closed 12 years ago
#11635 closed defect (fixed)
INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn
Reported by: | Ringo89 | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 4.2.10 |
Keywords: | NAT, INATEngine, redirect, port, forward, addRedirect | Cc: | |
Guest type: | Linux | Host type: | Mac OS X |
Description
Hi,
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.
Code:
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.
Code:
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.
Attachments (1)
Change History (6)
by , 12 years ago
comment:2 by , 12 years ago
comment:4 by , 12 years ago
Summary: | INATEngine (vboxjws) addRedirect causes crash (0x80004004) → INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn |
---|
log of testrun