id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host 11635,INATEngine (vboxjws) addRedirect causes crash (0x80004004) -> fixed in svn,Ringo89,,"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. {{{ #!div style=""font-size: 80%"" Code: {{{#!java 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. {{{ #!div style=""font-size: 80%"" Code: {{{#!java 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.",defect,closed,network/NAT,VirtualBox 4.2.10,fixed,"NAT, INATEngine, redirect, port, forward, addRedirect",,Linux,Mac OS X