VirtualBox

Ticket #11635 (closed defect: fixed)

Opened 13 months ago

Last modified 12 months ago

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

Reported by: Ringo89 Owned by:
Priority: major 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

VBox.log Download (3.6 KB) - added by Ringo89 13 months ago.
log of testrun

Change History

Changed 13 months ago by Ringo89

log of testrun

comment:1 follow-up: ↓ 2 Changed 13 months ago by Hachiman

Could you please verify that  build fixes issue for you?

comment:2 in reply to: ↑ 1 Changed 13 months ago by Ringo89

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 Changed 13 months ago by Hachiman

Thank you for feedback and testing.

comment:4 Changed 13 months ago by Hachiman

  • Summary changed from INATEngine (vboxjws) addRedirect causes crash (0x80004004) to INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn

comment:5 Changed 12 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 4.2.12.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use