1 Reply Latest reply on Jul 12, 2019 4:44 AM by sg072019

    Issues with vSphere 6.0 Management SDK

    varun_u Lurker
    VMware Employees

      Hello-

       

      I am running the sample programs in VMware-vSphere-SDK-6.0.0-2561048.zip and 6.0.2 [3634981] SDK's and i see the following error:

       

      ERROR: could not connect: login fault : The server sent HTTP status code 404: Not Found

      To be more precise, i am running the samples in the following manner:

       

      run.sh com.vmware.general.Connect --url <https://vcenter_url/sdk> --username <user> --password <password> and this leads to the below error:


       

      WARNING: Java is now set to trust all SSL certificates.

      -- VMware samples in Java --

       

        ERROR: could not connect: login fault : The server sent HTTP status code 404: Not Found

       

      com.vmware.connection.SsoConnection$SSOLoginException: could not connect: login fault : The server sent HTTP status code 404: Not Found

        at com.vmware.connection.SsoConnection.connect(SsoConnection.java:249)

        at com.vmware.connection.ConnectedVimServiceBase.connect(ConnectedVimServiceBase.java:119)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at com.vmware.common.samples.registry.ActionReference.invoke(ActionReference.java:80)

        at com.vmware.common.samples.registry.ActionReference.invokeAction(ActionReference.java:65)

        at com.vmware.common.samples.registry.ActionReference.action(ActionReference.java:47)

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

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

        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: com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 404: Not Found

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:296)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:245)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:203)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:122)

        at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:123)

        at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:626)

        at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:585)

        at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:570)

        at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:467)

        at com.sun.xml.internal.ws.client.Stub.process(Stub.java:308)

        at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:163)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)

        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)

        at com.sun.proxy.$Proxy47.issue(Unknown Source)

        at com.vmware.sso.client.samples.AcquireHoKTokenByUserCredentialSample.getToken(AcquireHoKTokenByUserCredentialSample.java:235)

        at com.vmware.connection.SsoConnection.login(SsoConnection.java:213)

        at com.vmware.connection.SsoConnection._connection(SsoConnection.java:269)

        at com.vmware.connection.SsoConnection.connect(SsoConnection.java:246)

        ... 14 more

      com.vmware.connection.SsoConnection$SSOLoginException: could not connect: login fault : The server sent HTTP status code 404: Not Found

        at com.vmware.connection.SsoConnection.connect(SsoConnection.java:249)

        at com.vmware.connection.ConnectedVimServiceBase.connect(ConnectedVimServiceBase.java:119)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at com.vmware.common.samples.registry.ActionReference.invoke(ActionReference.java:80)

        at com.vmware.common.samples.registry.ActionReference.invokeAction(ActionReference.java:65)

        at com.vmware.common.samples.registry.ActionReference.action(ActionReference.java:47)

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

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

        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: com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 404: Not Found

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:296)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:245)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:203)

        at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:122)

        at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:123)

        at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:626)

        at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:585)

        at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:570)

        at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:467)

        at com.sun.xml.internal.ws.client.Stub.process(Stub.java:308)

        at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:163)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)

        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)

        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)

        at com.sun.proxy.$Proxy47.issue(Unknown Source)

        at com.vmware.sso.client.samples.AcquireHoKTokenByUserCredentialSample.getToken(AcquireHoKTokenByUserCredentialSample.java:235)

        at com.vmware.connection.SsoConnection.login(SsoConnection.java:213)

        at com.vmware.connection.SsoConnection._connection(SsoConnection.java:269)

        at com.vmware.connection.SsoConnection.connect(SsoConnection.java:246)

        ... 14 more


      Could anybody let me know what i am doing wrong?


      The vCenter build number is:

      1. vCenter Server version: 6.0.0-3018523
      2. vSphere client version: 6.0.0-2502222

      Thanks!