Topic
  • 2 replies
  • Latest Post - ‏2013-01-06T18:06:51Z by pdubovitsky
SystemAdmin
SystemAdmin
24948 Posts

Pinned topic Server NullPointerException from OSLC query due to oslc_cm.pageSize value

‏2013-01-06T17:58:09Z |
Performing certain queries using the OSLC (v1) ClearQuest API I consistently get NullPointerException - and whether the exception occurs is heavily dependent on the paging limit I set

e.g. request /cqweb/oslc/repo/MYDB/db/MINE/simpleQuery?oslc_cm.pageSize=200&rcm.contentType=application%2Fjson&oslc_cm.query=oslc_cm%3AsearchTerms%3D%22foo%22

produces a 500 (Internal Server Error) response with detail: {u'oslc_cm:message': u'java.lang.NullPointerException', u'oslc_cm:statusCode': u'500'}

If I use exactly the same query with the pageSize changed to 199 or 201 then it works fine, so this is obviously a bug.

How can I get IBM to look into fixing this?
Updated on 2013-01-06T18:06:51Z at 2013-01-06T18:06:51Z by pdubovitsky
  • SystemAdmin
    SystemAdmin
    24948 Posts

    Re: Server NullPointerException from OSLC query due to oslc_cm.pageSize value

    ‏2013-01-06T18:02:30Z  
    Further investigation suggests that any pageSize that's a multiple of 100 produces the NPE
  • pdubovitsky
    pdubovitsky
    376 Posts

    Re: Server NullPointerException from OSLC query due to oslc_cm.pageSize value

    ‏2013-01-06T18:06:51Z  
    // this is obviously a bug

    In order to submit a bug report, you need to open a PMR with IBM-Rational technical support.

    Pavel