0 Replies Latest reply on Nov 19, 2014 1:00 AM by zengfuyang

    An error for vCD registered to vCC

    zengfuyang Novice

      I use the latest vCC 2.7 and try to register the vCD to the vCC, but when i register the vCC node , I have an error. Search the "hca.log", the message as below:

       

      Anyone can tell me who to resolve this issue. Thanks!

       

      2014-11-19 07:49:10.098 UTC [tomcat-http--1] DEBUG com.vmware.hc.vcd.VcdUtils - Updating vcloudclient version to V5_1.

      2014-11-19 07:49:10.110 UTC [tomcat-http--1] DEBUG com.vmware.hc.vcd.VcdUtils - Created VcloudClient com.vmware.vcloud.sdk.VcloudClient@445e8c5b.

      2014-11-19 07:55:41.968 UTC [tomcat-http--1] WARN  com.vmware.hc.vcd.VcdUtils - Logout should not be called on null VcloudClient.  Ignoring.

      2014-11-19 07:55:41.973 UTC [tomcat-http--1] DEBUG c.v.h.e.GlobalExceptionResolver - Resolving exception from handler [public com.vmware.hc.rest.beans.LoginData com.vmware.hc.agent.application.ManagementController.login(com.vmware.hc.rest.beans.LoginData,java.lang.String,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession) throws java.lang.Exception]: com.vmware.hc.exception.AuthenticationException: Could not connect to https://10.132.111.159.

      2014-11-19 07:55:41.973 UTC [tomcat-http--1] DEBUG c.v.h.e.GlobalExceptionResolver - Attempting to retrieve a mapping from the ExceptionController for exception [com.vmware.hc.exception.AuthenticationException, org.springframework.web.method.HandlerMethod] raised in com.vmware.hc.exception.AuthenticationException: Could not connect to https://10.132.111.159.

      2014-11-19 07:55:41.973 UTC [tomcat-http--1] DEBUG c.v.h.e.GlobalExceptionResolver - Invoking request handler method: public com.vmware.hc.rest.beans.HcError com.vmware.hc.rest.ExceptionController.handleAuthenticationException(com.vmware.hc.exception.AuthenticationException)

      2014-11-19 07:55:41.988 UTC [tomcat-http--1] WARN  c.vmware.hc.rest.ExceptionController - Handling AuthenticationException.

      com.vmware.hc.exception.AuthenticationException: Could not connect to https://10.132.111.159.

          at com.vmware.hc.agent.security.VcdAuthenticatorImpl.loginInternal(VcdAuthenticatorImpl.java:147) ~[VcdAuthenticatorImpl.class:na]

          at com.vmware.hc.agent.security.CloudAuthenticator.login(CloudAuthenticator.java:50) ~[CloudAuthenticator.class:na]

          at com.vmware.hc.agent.application.ManagementController.login(ManagementController.java:184) ~[ManagementController.class:na]

          at com.vmware.hc.agent.application.ManagementController$$FastClassByCGLIB$$d519d6c.invoke(<generated>) ~[cglib-2.2.jar:na]

          at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) ~[cglib-2.2.jar:na]

          at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:618) ~[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at com.vmware.hc.agent.application.ManagementController$$EnhancerByCGLIB$$a7e0d3fa.login(<generated>) ~[cglib-2.2.jar:na]

          at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) ~[na:na]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_45]

          at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45]

          at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) ~[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [servlet-api.jar:na]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [servlet-api.jar:na]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.26.A]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.26.A]

          at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) [spring-security-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.26.A]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.26.A]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [catalina.jar:7.0.26.A]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [catalina.jar:7.0.26.A]

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.26.A]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [catalina.jar:7.0.26.A]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) [catalina.jar:7.0.26.A]

          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) [catalina.jar:7.0.26.A]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.26.A]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.26.A]

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) [tomcat-coyote.jar:7.0.26.A]

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) [tomcat-coyote.jar:7.0.26.A]

          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1600) [tomcat-coyote.jar:7.0.26.A]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]

          at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]

      Caused by: com.vmware.vcloud.sdk.exception.UnauthorizedAccessException: Unauthorized

          at com.vmware.vcloud.sdk.RestUtil.login(RestUtil.java:296) ~[vcloud-java-sdk-5.1.0.jar:na]

          at com.vmware.vcloud.sdk.VcloudClient.login(VcloudClient.java:321) ~[vcloud-java-sdk-5.1.0.jar:na]

          at com.vmware.hc.vcd.VcdUtils.login(VcdUtils.java:52) ~[common-2.7.0.0-SNAPSHOT.jar:na]

          at com.vmware.hc.cloud.vcd.impl.VcdConnectionFactory.getOriginalConnection(VcdConnectionFactory.java:20) ~[common-2.7.0.0-SNAPSHOT.jar:na]

          at com.vmware.hc.cloud.vcd.impl.VcdConnectionFactory.getOriginalConnection(VcdConnectionFactory.java:13) ~[common-2.7.0.0-SNAPSHOT.jar:na]

          at com.vmware.hc.cloud.impl.CloudConnectionFactory$CloudClientOperationsCallback.initializeCallBack(CloudConnectionFactory.java:155) ~[common-2.7.0.0-SNAPSHOT.jar:na]

          at com.vmware.hc.cloud.impl.CloudConnectionFactory$CloudClientOperationsCallback.<init>(CloudConnectionFactory.java:149) ~[common-2.7.0.0-SNAPSHOT.jar:na]

          at com.vmware.hc.cloud.impl.CloudConnectionFactory.getConnection(CloudConnectionFactory.java:66) ~[common-2.7.0.0-SNAPSHOT.jar:na]

          at com.vmware.hc.agent.security.VcdAuthenticatorImpl.loginInternal(VcdAuthenticatorImpl.java:130) ~[VcdAuthenticatorImpl.class:na]

          ... 40 common frames omitted