Bug 903219 - [REST-API] NPE in api?rsdl
Summary: [REST-API] NPE in api?rsdl
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.2.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 3.2.0
Assignee: Ravi Nori
QA Contact: Jakub Libosvar
URL:
Whiteboard: infra
Depends On:
Blocks: 872819
TreeView+ depends on / blocked
 
Reported: 2013-01-23 14:12 UTC by Jakub Libosvar
Modified: 2016-02-10 19:14 UTC (History)
9 users (show)

Fixed In Version: sf4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
server.log (9.97 KB, text/x-log)
2013-01-23 14:12 UTC, Jakub Libosvar
no flags Details

Description Jakub Libosvar 2013-01-23 14:12:29 UTC
Created attachment 685931 [details]
server.log

Description of problem:
When accessing https://<rhevm-hostname>/api?rsdl NPE occurs:
HTTP Status 500 -
exception

org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
	org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:351)
	org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:220)
	org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:196)
	org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:551)
	org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:513)
	org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)
	org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
	org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
	org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
root cause

java.lang.NullPointerException
	org.ovirt.engine.api.restapi.resource.BackendApiResource.addSystemVersion(BackendApiResource.java:347)
	org.ovirt.engine.api.restapi.resource.BackendApiResource.get(BackendApiResource.java:305)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:601)
	org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
	org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
	org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
	org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
	org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:536)
	org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:513)
	org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125)
	org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
	org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
	org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Go to https://<rhevm-hostname>/api?rsdl
2.
3.
  
Actual results:
NPE

Expected results:
rsdl

Additional info:
Full trace attached
Regression against 3.1

Comment 1 Jakub Libosvar 2013-01-23 14:13:12 UTC
Oops, missed version. It's rhevm-3.2.0-4.el6ev.noarch

Comment 2 Michael Pasternak 2013-01-23 14:17:35 UTC
i cannot reproduce this on my environment, sounds like deployment issue, can you see the backend version at /api <product_info>?

Comment 3 Jakub Libosvar 2013-01-23 14:23:54 UTC
<product_info>
<name>oVirt Engine</name>
<vendor>ovirt.org</vendor>
<version major="3" minor="2" build="0" revision="0"/>
</product_info>

Comment 5 Michael Pasternak 2013-01-23 14:41:30 UTC
ravi, please see if you can reproduce this BZ on mentioned build

Comment 6 Ravi Nori 2013-01-23 17:44:40 UTC
Yes rhevm-3.2.0-4.el6ev.noarch throws an exception on /api?rsdl

Comment 7 Ravi Nori 2013-01-23 18:51:01 UTC
The rsdl bug was fixed in rhevm-3.2.0-5.el6ev.noarch, I have verified that /api?rsdl work in rhevm-3.2.0-5.el6ev.noarch (sf4)

Comment 8 Michael Pasternak 2013-01-24 09:40:56 UTC
(In reply to comment #7)
> The rsdl bug was fixed in rhevm-3.2.0-5.el6ev.noarch, I have verified that
> /api?rsdl work in rhevm-3.2.0-5.el6ev.noarch (sf4)

thanks Ravi, 

Jakub, please verify this bug against sf4.

Comment 9 Jakub Libosvar 2013-01-24 13:29:58 UTC
Verified rhevm-restapi-3.2.0-5.el6ev.noarch

Comment 10 Itamar Heim 2013-06-11 08:51:21 UTC
3.2 has been released

Comment 11 Itamar Heim 2013-06-11 08:51:25 UTC
3.2 has been released

Comment 12 Itamar Heim 2013-06-11 08:51:32 UTC
3.2 has been released

Comment 13 Itamar Heim 2013-06-11 08:55:46 UTC
3.2 has been released

Comment 14 Itamar Heim 2013-06-11 09:25:53 UTC
3.2 has been released


Note You need to log in before you can comment on or make changes to this bug.