Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370249

Summary: Bugzilla Adapter: NullPointerException getting a ChangeRequest
Product: [Technology] Lyo Reporter: Samuel Padgett <samuel.padgett>
Component: ServerAssignee: Samuel Padgett <samuel.padgett>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: fiedler.mf, samuel.padgett
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Samuel Padgett CLA 2012-01-31 12:30:12 EST
This happens for both RDF/XML and OSLC Compact responses.

CR.doGET - Accept: application/rdf+xml, query=id=16933
2012-01-31 12:27:36.197:WARN::/bugz/changerequest
java.lang.NullPointerException
	at org.eclipse.lyo.samples.bugzilla.jbugzx.rpc.ExtendedGetBug.getBug(ExtendedGetBug.java:68)
	at org.eclipse.lyo.samples.bugzilla.ChangeRequestService.doGet(ChangeRequestService.java:81)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

CR.doGET - Accept: application/x-oslc-compact+xml, application/x-jazz-compact-rendering; q=0.5, query=id=16933
2012-01-31 12:27:47.126:WARN::/bugz/changerequest
java.lang.NullPointerException
	at org.eclipse.lyo.samples.bugzilla.jbugzx.rpc.ExtendedGetBug.getBug(ExtendedGetBug.java:68)
	at org.eclipse.lyo.samples.bugzilla.ChangeRequestService.doGet(ChangeRequestService.java:81)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
Comment 1 Samuel Padgett CLA 2012-01-31 12:36:36 EST
This is with Bugzilla 4.0 (landfill) and might be related to the j2bugzilla 1.0 update. I think it has the same underlying cause as Bug 369922.
Comment 2 Samuel Padgett CLA 2012-01-31 12:50:01 EST
https://github.com/spadgett/lyo.server/commit/2f6c0090f071d93ba33773a4ad7c0870575a278c
Pull Request: https://github.com/eclipse/lyo.server/pull/7

I wrote all this code and have the rights to contribute it to Eclipse under the
eclipse.org web site terms of use.
Comment 4 Samuel Padgett CLA 2013-05-23 09:13:25 EDT
Closing...