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

VCloudException while fetching vApp in Org VDC

$
0
0

Hi,

 

I'm trying out VMWare VCloud Director and when I try to obtain the vApps of a certain organization VDC, I am getting the following exception:

 

com.vmware.vcloud.sdk.VCloudException: validation error : may not be null

    at com.vmware.vcloud.sdk.Response.handleUnExpectedResponse(Response.java:132)

    at com.vmware.vcloud.sdk.SdkUtil.validateResponse(SdkUtil.java:189)

    at com.vmware.vcloud.sdk.SdkUtil.get(SdkUtil.java:99)

    at com.vmware.vcloud.sdk.VcloudResource.getResourceByReference(VcloudResource.java:107)

    at com.vmware.vcloud.sdk.Vapp.getVappByReference(Vapp.java:109)

 

I tried to query the vApp via the REST API as well and I see the following stack trace related to a VCloudValidationException in the response:

 

<?xml version="1.0" encoding="UTF-8"?>

<Error xmlns="http://www.vmware.com/vcloud/v1.5" stackTrace="com.vmware.vcloud.common.validation.VCloudValidationException: validation error : may not be null

     at com.vmware.vcloud.common.validation.StandardValidationInterceptor.handleParameterError(StandardValidationInterceptor.java:188)

     at com.vmware.vcloud.common.validation.StandardValidationInterceptor.validateMethodParams(StandardValidationInterceptor.java:123)

     at com.vmware.vcloud.common.validation.AbstractMethodInterceptor.beforeMethod(AbstractMethodInterceptor.java:46)

     at sun.reflect.GeneratedMethodAccessor1860.invoke(Unknown Source)

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

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

     at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)

     at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603)

     at org.springframework.aop.aspectj.AspectJMethodBeforeAdvice.before(AspectJMethodBeforeAdvice.java:39)

     at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)

     at com.vmware.ssdc.backend.annotation.PresentationApiDiagnosticsInterceptor.aroundSecurePresentationLayerMethod(PresentationApiDiagnosticsInterceptor.java:51)

     at sun.reflect.GeneratedMethodAccessor1862.invoke(Unknown Source)

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

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

     at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)

     at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)

     at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)

     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

     at $Proxy293.getDatastoreSpec(Unknown Source)

     at sun.reflect.GeneratedMethodAccessor1938.invoke(Unknown Source)

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

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

     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)

     at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)

     at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

     at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)

     at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

     at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

     at $Proxy362.getDatastoreSpec(Unknown Source)

     at com.vmware.vcloud.api.rest.handlers.utils.VAppUtils.createVmExtensionInfo(VAppUtils.java:480)

     at com.vmware.vcloud.api.rest.handlers.utils.VAppUtils.createVmType(VAppUtils.java:448)

     at com.vmware.vcloud.api.rest.handlers.utils.VAppUtils.createVAppTypeFromVappSpec(VAppUtils.java:335)

     at com.vmware.vcloud.api.rest.handlers.VAppHandler.getVApp(VAppHandler.java:215)

     at sun.reflect.GeneratedMethodAccessor2035.invoke(Unknown Source)

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

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

     at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)

     at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)

     at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:133)

     at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:82)

     at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

     at java.util.concurrent.FutureTask.run(FutureTask.java:138)

     at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

     at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:247)

     at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113)

     at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:97)

     at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:458)

     at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:146)

     at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:148)

     at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)

     at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:108)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)

     at com.vmware.vcloud.api.rest.jaxrs.servlet.CxfServlet.service(CxfServlet.java:163)

     at com.vmware.vcloud.api.rest.jaxrs.servlet.JaxRsDispatcherServlet.doService(JaxRsDispatcherServlet.java:97)

     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)

     at com.vmware.vcloud.api.rest.diagnostics.DiagnosticFilter.doFilter(DiagnosticFilter.java:33)

     at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:128)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at com.vmware.vcloud.security.filters.ValidationFilter.doFilterHttp(ValidationFilter.java:96)

     at com.vmware.vcloud.api.rest.security.SecurityFilter.doFilterHttp(SecurityFilter.java:82)

     at com.vmware.vcloud.security.filters.HttpFilterBean.doFilter(HttpFilterBean.java:35)

     at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:128)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at com.vmware.vcloud.security.filters.ValidityExceptionFilter.doFilterHttp(ValidityExceptionFilter.java:47)

     at com.vmware.vcloud.security.filters.HttpFilterBean.doFilter(HttpFilterBean.java:35)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at com.vmware.vcloud.security.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:155)

     at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:128)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at com.vmware.vcloud.api.rest.versioning.AcceptHeaderFilter.doFilter(AcceptHeaderFilter.java:115)

     at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:128)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at com.vmware.vcloud.security.web.ConversationFilter$1.run(ConversationFilter.java:39)

     at com.vmware.vcloud.security.web.ConversationFilter$1.run(ConversationFilter.java:37)

     at com.vmware.vcloud.common.persist.ConversationContextExecutor.execute(ConversationContextExecutor.java:38)

     at com.vmware.vcloud.security.web.ConversationFilter.doFilter(ConversationFilter.java:45)

     at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:128)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at com.vmware.vcloud.security.web.ThreadLocalCleanerFilter.doFilter(ThreadLocalCleanerFilter.java:65)

     at com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:128)

     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)

     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)

     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)

     at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:78)

     at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:154)

     at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)

     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)

     at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)

     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

     at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)

     at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

     at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

     at org.mortbay.jetty.Server.handle(Server.java:326)

     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

     at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)

     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)

     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)

     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

     at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

     at org.mortbay.jetty.security.SslSocketConnector$SslConnection.run(SslSocketConnector.java:680)

     at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

" minorErrorCode="BAD_REQUEST" message="validation error : may not be null" majorErrorCode="400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

 

HTTP/1.1 400 Bad Request

 

Date: Tue, 07 May 2013 12:37:09 GMT

 

Content-Type: application/vnd.vmware.vcloud.error+xml;version=1.5

 

Date: Tue, 07 May 2013 12:37:09 GMT

 

Content-Length: 12668

 

Can anyone please give me some pointers as to why this exception is occurring?

The impact of this is that I'm unable to find the virtual machines that are in this vApp. I have obtained other vApps in the same Org VDC and other Org VDCs as well.

(The version of vCD is 1.5.)

 

P.S.: Sorry for the large stack trace. Just wanted to include all relevant information.

 

Regards,

vSkyWalker


Viewing all articles
Browse latest Browse all 179681

Trending Articles



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