Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

vSphere 6.5 Java SDK - "Cannot find service 'com.vmware.vcenter.datacenter'"

$
0
0

I'm currently attempting to run the Java samples that ship with the SDK, and am receiving the following exception:

 

Exception in thread "main" com.vmware.vapi.std.errors.OperationNotFound: OperationNotFound (com.vmware.vapi.std.errors.operation_not_found) => {

    messages = [LocalizableMessage (com.vmware.vapi.std.localizable_message) => {

    id = vapi.method.input.invalid.interface,

    defaultMessage = Cannot find service 'com.vmware.vcenter.datacenter'.,

    args = [com.vmware.vcenter.datacenter]

}],

    data = <null>

}

 

These examples are running with no change to the source code, and I've verified that authentication is properly occurring, as the RetrieveServiceContent HTTP call is being made, and the response is received.  Can someone assist me in figuring out either 1) what is wrong with the code sample, or 2) what possible configuration change is needed to resolve this?   For reference, I am using the CreateBasicVM.java class found in the vsphere 6.5 automation SDK (attached).  Thanks.


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>