enricodile
Contributor
Contributor

Thank you very much, but i still have a problem.

This is my code:

ServiceInstance si = new ServiceInstance(url, username, password, ignoreCert);

OptionManager om = si.getOptionManager();

OptionValue[] ovs =om.queryOptions("VirtualCenter.InstanceName");

It returns this error on the third line:

Exception in thread "main" com.vmware.vim25.NoPermission

Also, this instruction:

OptionValue[] ovs =om.getSetting();

returns a NullPointerException...

Where is the problem?

Reply
0 Kudos