<div dir="ltr"><div>(My apologies if the message is received twice by the mailing list)</div><div><br></div><div><div>I&#39;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=&#39;local_cluster&#39;)</div>

<div><br></div><div>Is it a known issue ?</div><div><br></div><div>I&#39;ve also notice the same problem with rbovirt.</div><div><br></div><div>I&#39;ve put code to reproduce here <a href="https://gist.github.com/herveleclerc/6492361" target="_blank">https://gist.github.com/herveleclerc/6492361</a></div>

<div><br></div><div>Here the log from server.log</div><div><br></div><div><br></div><div><div>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</div>

<div>        at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.3.2.Final.jar:]</div>

<div>        at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) [resteasy-jaxrs-2.3.2.Final.jar:]</div>

<div>        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.3.2.Final.jar:]</div>

<div>        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]</div>

<div>        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]</div>

<div>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]</div>

<div>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]</div>

<div>        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]</div>

<div>        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]</div>

<div>        at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]</div>

<div>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505) [jbossweb-7.0.13.Final.jar:]</div>

<div>        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]</div>

<div>        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]</div><div>Caused by: java.lang.NullPointerException</div><div>        at org.ovirt.engine.api.common.util.LinkHelper.getCollection(LinkHelper.java:523) [interface-common-jaxrs.jar:]</div>

<div>        at org.ovirt.engine.api.common.util.LinkHelper.getUriBuilder(LinkHelper.java:569) [interface-common-jaxrs.jar:]</div><div>        at org.ovirt.engine.api.restapi.resource.AbstractBackendResource.linkSubCollections(AbstractBackendResource.java:287) [restapi-jaxrs.jar:]</div>

<div>        at org.ovirt.engine.api.restapi.resource.AbstractBackendResource.addLinks(AbstractBackendResource.java:228) [restapi-jaxrs.jar:]</div><div>        at org.ovirt.engine.api.restapi.resource.AbstractBackendResource.addLinks(AbstractBackendResource.java:218) [restapi-jaxrs.jar:]</div>

<div>        at org.ovirt.engine.api.restapi.resource.BackendVmsResource.mapCollection(BackendVmsResource.java:407) [restapi-jaxrs.jar:]</div><div>        at org.ovirt.engine.api.restapi.resource.BackendVmsResource.list(BackendVmsResource.java:71) [restapi-jaxrs.jar:]</div>

<div>        at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source) [:1.7.0_25]</div><div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]</div>
<div>
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]</div><div>        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>

        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:]</div></div><div><br></div><div><div> at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:]</div>

<div>        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) [resteasy-jaxrs-2.3.2.Final.jar:]</div>

<div>        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:]</div><div>        ... 21 more</div></div><div><br></div><div><br></div><div><br>
</div>
</div><div><div dir="ltr"><div>Hervé Leclerc</div><div>CTO</div><div>Alter Way</div><div>1, rue royale</div><div>9 ème étage</div><div>92210 St Cloud</div><div>+33 1 78152407</div><div>+33 6 83979598</div><div><a></a><span></span><span></span><br>

</div><div><a href="http://www.alterway.fr/signatures/url/1" target="_blank"><img src="http://www.alterway.fr/signatures/img/1"></a><br></div></div></div>
</div>