Java Web Services ACPI shut down Aborted State error
Posted: 28. May 2013, 20:49
I recently added some powerButton (ACPI) code to my Java Virtualbox web services code but after calling this method, the Windows 7 VM goes into an "Aborted State" and can only be resolved by restarting the web server.
I would like to see if anyone can tell me if I'm missing something in my code that would cause this Aborted State to occur.
Java Virtualbox 4.2.12 is the current build running on Windows
Thanks
I would like to see if anyone can tell me if I'm missing something in my code that would cause this Aborted State to occur.
Java Virtualbox 4.2.12 is the current build running on Windows
Thanks
Code: Select all
public void powerDownVMPowerButton(VirtualBoxManager oJavaVirtualBoxMgr, IVirtualBox oVirtualBoxInstance, String sVMName){
ISession oSession = null;
IConsole oConsole = null;
IMachine oMachine = null;
try{
oMachine = oVirtualBoxInstance.findMachine(sVMName);
oSession = oJavaVirtualBoxMgr.getSessionObject();
oMachine.lockMachine(oSession, LockType.Shared);
oConsole = oSession.getConsole();
oConsole.powerButton();
oSession.unlockMachine();
}catch (VBoxException e)
{
e.printStackTrace();
}
}