2 Replies Latest reply on Oct 1, 2019 3:11 AM by Nick_Andreev

    Can not make apiClient.

    fred0204 Lurker

      Hello.

       

      I am developing to contorol NSX-T(Using java SDK)

       

      I made ApiClient by referring to the example code.

      (vsphere-automation-sdk-java/VmcNsxAuthenticationHelper.java at master · vmware/vsphere-automation-sdk-java · GitHub )

       

      I filled in parameter(orgs, sddcId, refreshToken) as appropriate.

       

      But It doesn't work. Below is my error Message.

       

           Unable to get SDDC information: I/O error

       

      15:37:58.074 [main] DEBUG o.a.h.c.protocol.RequestAddCookies - CookieSpec selected: default

      15:37:58.074 [main] DEBUG o.a.h.c.protocol.RequestAuthCache - Auth cache not set in the context

      15:37:58.075 [main] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection request: [route: {s}->https://vmc.vmware.com:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 1 of 20]

      15:37:58.075 [main] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {s}->https://vmc.vmware.com:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 2 of 20]

      15:37:58.075 [main] DEBUG o.a.h.impl.execchain.MainClientExec - Opening connection {s}->https://vmc.vmware.com:443

      15:37:58.167 [main] DEBUG o.a.h.i.c.DefaultHttpClientConnectionOperator - Connecting to vmc.vmware.com/52.41.5.206:443

      15:37:58.168 [main] DEBUG o.a.h.c.s.SSLConnectionSocketFactory - Connecting socket to vmc.vmware.com/52.41.5.206:443 with timeout 0

      15:38:19.171 [main] DEBUG o.a.h.i.c.DefaultHttpClientConnectionOperator - Connect to vmc.vmware.com/52.41.5.206:443 timed out. Connection will be retried using another IP address

      15:38:19.171 [main] DEBUG o.a.h.i.c.DefaultHttpClientConnectionOperator - Connecting to vmc.vmware.com/52.35.231.108:443

      15:38:19.171 [main] DEBUG o.a.h.c.s.SSLConnectionSocketFactory - Connecting socket to vmc.vmware.com/52.35.231.108:443 with timeout 0

      15:38:40.174 [main] DEBUG o.a.h.i.c.DefaultHttpClientConnectionOperator - Connect to vmc.vmware.com/52.35.231.108:443 timed out. Connection will be retried using another IP address

      15:38:40.174 [main] DEBUG o.a.h.i.c.DefaultHttpClientConnectionOperator - Connecting to vmc.vmware.com/35.161.22.197:443

      15:38:40.174 [main] DEBUG o.a.h.c.s.SSLConnectionSocketFactory - Connecting socket to vmc.vmware.com/35.161.22.197:443 with timeout 0

      15:39:01.177 [main] DEBUG o.a.h.i.c.DefaultManagedHttpClientConnection - http-outgoing-1: Shutdown connection

      15:39:01.177 [main] DEBUG o.a.h.impl.execchain.MainClientExec - Connection discarded

       

      I can connect vmc.vmware.com using postman or chrome.

      (vmc.vmware.com/vmc/api/orgs/xxxxxx/sddcs/xxxxx)

       

      What is the problem? Detailed log attached.