Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

can's run web service SDK samples

$
0
0

hello all,

 

I have download and compile the vsphere web service SDK and samples. but when I try to launch a simple test, it fails:

➜  vsphere-ws  ./run.sh com.vmware.general.Connect --basic-connection --url https://10.112.113.154:/sdk --username root --password password

-- VMware samples in Java --

 

    ERROR: com.vmware.connection.Connection

 

java.lang.InstantiationException: com.vmware.connection.Connection

    at java.lang.Class.newInstance(Class.java:427)

    at com.vmware.common.samples.parameters.Parameters.inject(Parameters.java:216)

    at com.vmware.common.samples.registry.SampleReference.run(SampleReference.java:87)

    at com.vmware.common.Main.run(Main.java:282)

    at com.vmware.common.Main.sampleSwitching(Main.java:254)

    at com.vmware.common.Main.registeredSample(Main.java:169)

    at com.vmware.common.Main.main(Main.java:121)

Caused by: java.lang.NoSuchMethodException: com.vmware.connection.Connection.<init>()

    at java.lang.Class.getConstructor0(Class.java:3082)

    at java.lang.Class.newInstance(Class.java:412)

    ... 6 more

 

Any clue?

 

thanks a lot!


Viewing all articles
Browse latest Browse all 2738

Trending Articles