Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370249 - Bugzilla Adapter: NullPointerException getting a ChangeRequest
Summary: Bugzilla Adapter: NullPointerException getting a ChangeRequest
Status: CLOSED FIXED
Alias: None
Product: Lyo
Classification: Technology
Component: Server (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Samuel Padgett CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 12:30 EST by Samuel Padgett CLA
Modified: 2013-05-23 09:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...