when debuging as followings
ServiceInstance si = new ServiceInstance(new URL(urlStr), username, password, true);
AlarmManager am = si.getAlarmManager();
Folder rootFolder = si.getRootFolder();
VirtualMachine vm = (VirtualMachine) new InventoryNavigator(rootFolder).searchManagedEntity("VirtualMachine", vmname);
returns null from the statement of "AlarmManager am = si.getAlarmManager();" and cannot keep runing .
is anything needed to configure on esx hosts related to this alarm manager ?