VirtualBox

Opened 11 years ago

Closed 11 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)

VBox.log (3.6 KB ) - added by Ringo89 11 years ago.
log of testrun

Download all attachments as: .zip

Change History (6)

by Ringo89, 11 years ago

Attachment: VBox.log added

log of testrun

comment:1 by vasily Levchenko, 11 years ago

Could you please verify that build fixes issue for you?

in reply to:  1 comment:2 by Ringo89, 11 years ago

Replying to Hachiman:

Could you please verify that build fixes issue for you?

Today I was finally able to run the tests again. The execution finished several times without any exception. It seems as if the build did fix the issue.

Thank you very much for the quick fix!

comment:3 by vasily Levchenko, 11 years ago

Thank you for feedback and testing.

comment:4 by vasily Levchenko, 11 years ago

Summary: INATEngine (vboxjws) addRedirect causes crash (0x80004004)INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn

comment:5 by Frank Mehnert, 11 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 4.2.12.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use