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();
}
}