[Users] Error 500 with python sdk on3.3
Dave Neary
dneary at redhat.com
Thu Sep 12 17:59:24 UTC 2013
Hi Hervé,
Did you get an answer to this? I saw you still had the issue with the RC
packages.
Cheers,
Dave.
On 09/09/2013 09:53 AM, Hervé Leclerc wrote:
> (My apologies if the message is received twice by the mailing list)
>
> I've got a 500 when a try to get the list of vms with python sdk on
> oVirt 3.3 with the statement : vms=api.vms.list(cluster='local_cluster')
>
> Is it a known issue ?
>
> I've also notice the same problem with rbovirt.
>
> I've put code to reproduce here https://gist.github.com/herveleclerc/6492361
>
> Here the log from server.log
>
>
> 2013-09-09 09:34:02,141 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/api].[org.ovirt.engine.api.restapi.BackendApplication]]
> (ajp--127.0.0.1-8702-7) Servlet.service() for servlet
> org.ovirt.engine.api.restapi.BackendApplication threw exception:
> org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
> at
> org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
> [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
> [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
> [jbossweb-7.0.13.Final.jar:]
> at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
> Caused by: java.lang.NullPointerException
> at
> org.ovirt.engine.api.common.util.LinkHelper.getCollection(LinkHelper.java:523)
> [interface-common-jaxrs.jar:]
> at
> org.ovirt.engine.api.common.util.LinkHelper.getUriBuilder(LinkHelper.java:569)
> [interface-common-jaxrs.jar:]
> at
> org.ovirt.engine.api.restapi.resource.AbstractBackendResource.linkSubCollections(AbstractBackendResource.java:287)
> [restapi-jaxrs.jar:]
> at
> org.ovirt.engine.api.restapi.resource.AbstractBackendResource.addLinks(AbstractBackendResource.java:228)
> [restapi-jaxrs.jar:]
> at
> org.ovirt.engine.api.restapi.resource.AbstractBackendResource.addLinks(AbstractBackendResource.java:218)
> [restapi-jaxrs.jar:]
> at
> org.ovirt.engine.api.restapi.resource.BackendVmsResource.mapCollection(BackendVmsResource.java:407)
> [restapi-jaxrs.jar:]
> at
> org.ovirt.engine.api.restapi.resource.BackendVmsResource.list(BackendVmsResource.java:71)
> [restapi-jaxrs.jar:]
> at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source)
> [:1.7.0_25]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.7.0_25]
> at java.lang.reflect.Method.invoke(Method.java:606)
> [rt.jar:1.7.0_25]
> at
> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
> [resteasy-jaxrs-2.3.2.Final.jar:]
>
> at
> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
> [resteasy-jaxrs-2.3.2.Final.jar:]
> ... 21 more
>
>
>
> Hervé Leclerc
> CTO
> Alter Way
> 1, rue royale
> 9 ème étage
> 92210 St Cloud
> +33 1 78152407
> +33 6 83979598
>
> <http://www.alterway.fr/signatures/url/1>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
--
Dave Neary - Community Action and Impact
Open Source and Standards, Red Hat - http://community.redhat.com
Ph: +33 9 50 71 55 62 / Cell: +33 6 77 01 92 13
More information about the Users
mailing list