Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Java Sample CloneVM fails with "The server sent HTTP status code 200: OK"

$
0
0

Hi,

 

I downloaded the SDK zip and copied the VMClone.java from "SDK\vsphere-ws\java\JAXWS\samples\com\vmware\vm" into a Eclipse project and started it by this code:

 

String[] myargs = new String[12];

myargs[0] = "--url";

myargs[1] = "https://192.168.0.91:9443";

myargs[2] = "--username";

myargs[3] = "[myuser]";

myargs[4] = "--password";

myargs[5] = "[mypassword].";

myargs[6] = "--datacentername";

myargs[7] = "LaptopIkor";

myargs[8] = "--vmpath";

myargs[9] = "[datastore1]/liferayTomcat/liferayTomcat.vmx";

myargs[10] = "--clonename";

myargs[11] = "DriverCreation1";

com.vmware.vm.VMClone.main(myargs);

 

But this fails with following message/stacktrace:

com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK

at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(Unknown Source)

at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown Source)

at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown Source)

at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown Source)

at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)

at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)

at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)

at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)

at com.sun.xml.internal.ws.client.Stub.process(Unknown Source)

at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source)

at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)

at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)

at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)

at $Proxy35.retrieveServiceContent(Unknown Source)

at com.vmware.vm.VMCreate.connect(VMCreate.java:287)

at com.vmware.vm.VMCreate.main(VMCreate.java:1047)

 

This also happens with VMCreate and when using the samples.jar instead of copying the source files. Any idea how to resolve this?

The url points to a win2008 server with vCenter Server installed, including vSphere Web Client.

 

Thanks for any help.


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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