Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection timeout #144

Open
3 tasks done
zhmingyong opened this issue Jan 18, 2022 · 0 comments
Open
3 tasks done

Connection timeout #144

zhmingyong opened this issue Jan 18, 2022 · 0 comments

Comments

@zhmingyong
Copy link

zhmingyong commented Jan 18, 2022

  • I am using the latest SDK version
  • This API is compatible with my vCenter version (You can get this info from the API documentation )
  • I have searched existing issues

Description

I use the latest code and version 6.7.0 have connection timeout, but I use the browser and use the same user password is normal access, has been unable to resolve.

java.lang.NullPointerException
at vmware.samples.common.authentication.VimAuthenticationHelper.logout(VimAuthenticationHelper.java:105)
at vmware.samples.common.SamplesAbstractBase.logout(SamplesAbstractBase.java:411)
at vmware.samples.common.SamplesAbstractBase.execute(SamplesAbstractBase.java:448)
at vmware.samples.vcenter.vm.list.ListVMs.main(ListVMs.java:128)
Exception in thread "main" com.vmware.vapi.client.exception.ConnectionException: https://172.23.3.105:443/api invocation failed with "org.apache.http.conn.ConnectTimeoutException: Connect to 172.23.3.105:443 [/172.23.3.105] failed: connect timed out"
at com.vmware.vapi.internal.protocol.client.rpc.http.HttpClient.send(HttpClient.java:188)
at com.vmware.vapi.internal.protocol.client.msg.json.JsonApiProvider.sendRequest(JsonApiProvider.java:186)
at com.vmware.vapi.internal.protocol.client.msg.json.JsonApiProvider.invoke(JsonApiProvider.java:539)
at com.vmware.vapi.internal.bindings.Stub.invoke(Stub.java:241)
at com.vmware.vapi.internal.bindings.Stub.invokeMethodAsync(Stub.java:191)
at com.vmware.vapi.internal.bindings.Stub.invokeMethod(Stub.java:137)
at com.vmware.cis.SessionStub.create(SessionStub.java:46)
at com.vmware.cis.SessionStub.create(SessionStub.java:37)
at vmware.samples.common.authentication.VapiAuthenticationHelper.loginByUsernameAndPassword(VapiAuthenticationHelper.java:73)
at vmware.samples.common.SamplesAbstractBase.login(SamplesAbstractBase.java:309)
at vmware.samples.common.SamplesAbstractBase.execute(SamplesAbstractBase.java:433)
at vmware.samples.vcenter.vm.list.ListVMs.main(ListVMs.java:128)

Environment

  • SDK version:

6.7.0 and 7.0.3.0

  • Java version:

1.8

  • vSphere version:
    6.7.0

Steps or code snippet to reproduce

Actual behavior

Abnormal connection

Expected behavior

Normal connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant