NullPointerException on Result Test creation with REST API
Below are the steps to reproduce the problem, all requests being made with PUT and User defined ID, the problem are in step 3. We are using the 4.0 version of RQM.
Step1: Create a Test Case - https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/testcase/testcase123
<?xml version="1.0" encoding="UTF-8"?>
<testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://purl.org/dc/elements/1.1/" xmlns:ns2="http://jazz.net/xmlns/alm/v0.1/">
<ns1:title>Test Case name</ns1:title>
<ns1:description>Description</ns1:description> <ns2:state>com.ibm.rqm.planning.common.new</ns2:state> </testcase>
Step 2 - Create a Test Execution Record - https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/executionworkitem/executionwork123
<?xml version="1.0" encoding="UTF-8"?>
<executionworkitem xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"
xmlns:ns1="http://purl.org/dc/elements/1.1/"
xmlns:ns2="http://jazz.net/xmlns/alm/v0.1/">
<ns1:title>WORK ITEM TEST EXECUTION</ns1:title>
<ns2:state>com.ibm.rqm.planning.common.new</ns2:state>
<testcase href="https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/testcase/testcase123"/>
</executionworkitem>
Step 3 - Create a Result - https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/executionresult/result123
<?xml version="1.0" encoding="UTF-8"?>
<executionresult xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"
xmlns:ns1="http://purl.org/dc/elements/1.1/"
xmlns:ns2="http://jazz.net/xmlns/alm/v0.1/"
xmlns:ns3="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1">
<ns1:title>RESULT</ns1:title>
<ns2:state>com.ibm.rqm.planning.common.new</ns2:state>
<ns3:result>com.ibm.rqm.execution.common.state.passed</ns3:result>
<executionworkitem href="https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/executionworkitem/executionworkitem123" />
<testcase href="https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/testcase/testcase123"/>
</executionresult>
Error:
{"errorClass":"java.lang.NullPointerException","errorCode":500,"errorTraceMarshall":[{"errorTraceFileName":"ExecutionResultRestService.java","errorTraceClassName":"com.ibm.rqm.execution.service.internal.rest.ExecutionResultRestService","errorTraceMethodName":"postExecutionResult","errorTraceLineNumber":426},{"errorTraceFileName":null,"errorTraceClassName":"sun.reflect.GeneratedMethodAccessor2393","errorTraceMethodName":"invoke","errorTraceLineNumber":-1},{"errorTraceFileName":"DelegatingMethodAccessorImpl.java","errorTraceClassName":"sun.reflect.DelegatingMethodAccessorImpl","errorTraceMethodName":"invoke","errorTraceLineNumber":37},{"errorTraceFileName":"Method.java","errorTraceClassName":"java.lang.reflect.Method","errorTraceMethodName":"invoke","errorTraceLineNumber":611},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord","errorTraceMethodName":"invoke","errorTraceLineNumber":361},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord","errorTraceMethodName":"access$0","errorTraceLineNumber":347},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler","errorTraceMethodName":"invoke","errorTraceLineNumber":56},{"errorTraceFileName":null,"errorTraceClassName":"$Proxy2407","errorTraceMethodName":"postExecutionResult","errorTraceLineNumber":-1},{"errorTraceFileName":"ExecutionResultPutHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.put.ExecutionResultPutHandler","errorTraceMethodName":"unmarshal","errorTraceLineNumber":660},{"errorTraceFileName":"ExecutionResultPutHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.put.ExecutionResultPutHandler","errorTraceMethodName":"unmarshal","errorTraceLineNumber":1},{"errorTraceFileName":"AbstractPutHandler.java","errorTraceClassName":"com.ibm.rqm.integration.handler.AbstractPutHandler","errorTraceMethodName":"handle","errorTraceLineNumber":160},{"errorTraceFileName":"AbstractPostHandler.java","errorTraceClassName":"com.ibm.rqm.integration.handler.AbstractPostHandler","errorTraceMethodName":"handle","errorTraceLineNumber":104},{"errorTraceFileName":"ExecutionResultPutHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.put.ExecutionResultPutHandler","errorTraceMethodName":"handle","errorTraceLineNumber":113},{"errorTraceFileName":null,"errorTraceClassName":"sun.reflect.GeneratedMethodAccessor620","errorTraceMethodName":"invoke","errorTraceLineNumber":-1},{"errorTraceFileName":"DelegatingMethodAccessorImpl.java","errorTraceClassName":"sun.reflect.DelegatingMethodAccessorImpl","errorTraceMethodName":"invoke","errorTraceLineNumber":37},{"errorTraceFileName":"Method.java","errorTraceClassName":"java.lang.reflect.Method","errorTraceMethodName":"invoke","errorTraceLineNumber":611},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord","errorTraceMethodName":"invoke","errorTraceLineNumber":361},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord","errorTraceMethodName":"access$0","errorTraceLineNumber":347},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler","errorTraceMethodName":"invoke","errorTraceLineNumber":56},{"errorTraceFileName":null,"errorTraceClassName":"$Proxy2698","errorTraceMethodName":"handle","errorTraceLineNumber":-1},{"errorTraceFileName":"IntegrationService.java","errorTraceClassName":"com.ibm.rqm.integration.service.internal.IntegrationService","errorTraceMethodName":"handleRequest","errorTraceLineNumber":583},{"errorTraceFileName":"IntegrationService.java","errorTraceClassName":"com.ibm.rqm.integration.service.internal.IntegrationService","errorTraceMethodName":"perform_POST","errorTraceLineNumber":230},{"errorTraceFileName":"TeamRawService.java","errorTraceClassName":"com.ibm.team.repository.service.TeamRawService","errorTraceMethodName":"service","errorTraceLineNumber":90},{"errorTraceFileName":null,"errorTraceClassName":"sun.reflect.GeneratedMethodAccessor618","errorTraceMethodName":"invoke","errorTraceLineNumber":-1},{"errorTraceFileName":"DelegatingMethodAccessorImpl.java","errorTraceClassName":"sun.reflect.DelegatingMethodAccessorImpl","errorTraceMethodName":"invoke","errorTraceLineNumber":37},{"errorTraceFileName":"Method.java","errorTraceClassName":"java.lang.reflect.Method","errorTraceMethodName":"invoke","errorTraceLineNumber":611},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord","errorTraceMethodName":"invoke","errorTraceLineNumber":361},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord","errorTraceMethodName":"access$0","errorTraceLineNumber":347},{"errorTraceFileName":"ExportProxyServiceRecord.java","errorTraceClassName":"org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler","errorTraceMethodName":"invoke","errorTraceLineNumber":56},{"errorTraceFileName":null,"errorTraceClassName":"$Proxy2356","errorTraceMethodName":"service","errorTraceLineNumber":-1},{"errorTraceFileName":"AbstractTeamServerServlet.java","errorTraceClassName":"com.ibm.team.repository.servlet.AbstractTeamServerServlet","errorTraceMethodName":"doRestService","errorTraceLineNumber":914},{"errorTraceFileName":"AbstractTeamServerServlet.java","errorTraceClassName":"com.ibm.team.repository.servlet.AbstractTeamServerServlet","errorTraceMethodName":"handleRequest2","errorTraceLineNumber":2100},{"errorTraceFileName":"AbstractTeamServerServlet.java","errorTraceClassName":"com.ibm.team.repository.servlet.AbstractTeamServerServlet","errorTraceMethodName":"handleRequest","errorTraceLineNumber":1924},{"errorTraceFileName":"AbstractTeamServerServlet.java","errorTraceClassName":"com.ibm.team.repository.servlet.AbstractTeamServerServlet","errorTraceMethodName":"service","errorTraceLineNumber":1800},{"errorTraceFileName":"HttpServlet.java","errorTraceClassName":"javax.servlet.http.HttpServlet","errorTraceMethodName":"service","errorTraceLineNumber":831},{"errorTraceFileName":"ServletManager.java","errorTraceClassName":"org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper","errorTraceMethodName":"service","errorTraceLineNumber":180},{"errorTraceFileName":"ServletRegistration.java","errorTraceClassName":"org.eclipse.equinox.http.servlet.internal.ServletRegistration","errorTraceMethodName":"service","errorTraceLineNumber":61},{"errorTraceFileName":"ProxyServlet.java","errorTraceClassName":"org.eclipse.equinox.http.servlet.internal.ProxyServlet","errorTraceMethodName":"processAlias","errorTraceLineNumber":126},{"errorTraceFileName":"ProxyServlet.java","errorTraceClassName":"org.eclipse.equinox.http.servlet.internal.ProxyServlet","errorTraceMethodName":"service","errorTraceLineNumber":76},{"errorTraceFileName":"HttpServlet.java","errorTraceClassName":"javax.servlet.http.HttpServlet","errorTraceMethodName":"service","errorTraceLineNumber":831},{"errorTraceFileName":"BridgeServlet.java","errorTraceClassName":"org.eclipse.equinox.servletbridge.BridgeServlet","errorTraceMethodName":"service","errorTraceLineNumber":120},{"errorTraceFileName":"JazzServlet.java","errorTraceClassName":"com.ibm.team.repository.server.servletbridge.JazzServlet","errorTraceMethodName":"service","errorTraceLineNumber":68},{"errorTraceFileName":"HttpServlet.java","errorTraceClassName":"javax.servlet.http.HttpServlet","errorTraceMethodName":"service","errorTraceLineNumber":831},{"errorTraceFileName":"ServletWrapper.java","errorTraceClassName":"com.ibm.ws.webcontainer.servlet.ServletWrapper","errorTraceMethodName":"service","errorTraceLineNumber":1657},{"errorTraceFileName":"ServletWrapper.java","errorTraceClassName":"com.ibm.ws.webcontainer.servlet.ServletWrapper","errorTraceMethodName":"service","errorTraceLineNumber":1597},{"errorTraceFileName":"WebAppFilterChain.java","errorTraceClassName":"com.ibm.ws.webcontainer.filter.WebAppFilterChain","errorTraceMethodName":"doFilter","errorTraceLineNumber":131},{"errorTraceFileName":"BridgeFilter.java","errorTraceClassName":"com.ibm.team.repository.server.servletbridge.BridgeFilter","errorTraceMethodName":"processDelegate","errorTraceLineNumber":133},{"errorTraceFileName":"BridgeFilter.java","errorTraceClassName":"com.ibm.team.repository.server.servletbridge.BridgeFilter","errorTraceMethodName":"doFilter","errorTraceLineNumber":154},{"errorTraceFileName":"FilterInstanceWrapper.java","errorTraceClassName":"com.ibm.ws.webcontainer.filter.FilterInstanceWrapper","errorTraceMethodName":"doFilter","errorTraceLineNumber":188},{"errorTraceFileName":"WebAppFilterChain.java","errorTraceClassName":"com.ibm.ws.webcontainer.filter.WebAppFilterChain","errorTraceMethodName":"doFilter","errorTraceLineNumber":116},{"errorTraceFileName":"WebAppFilterChain.java","errorTraceClassName":"com.ibm.ws.webcontainer.filter.WebAppFilterChain","errorTraceMethodName":"_doFilter","errorTraceLineNumber":77},{"errorTraceFileName":"WebAppFilterManager.java","errorTraceClassName":"com.ibm.ws.webcontainer.filter.WebAppFilterManager","errorTraceMethodName":"doFilter","errorTraceLineNumber":908},{"errorTraceFileName":"ServletWrapper.java","errorTraceClassName":"com.ibm.ws.webcontainer.servlet.ServletWrapper","errorTraceMethodName":"handleRequest","errorTraceLineNumber":934},{"errorTraceFileName":"ServletWrapper.java","errorTraceClassName":"com.ibm.ws.webcontainer.servlet.ServletWrapper","errorTraceMethodName":"handleRequest","errorTraceLineNumber":502},{"errorTraceFileName":"ServletWrapperImpl.java","errorTraceClassName":"com.ibm.ws.webcontainer.servlet.ServletWrapperImpl","errorTraceMethodName":"handleRequest","errorTraceLineNumber":181},{"errorTraceFileName":"WebApp.java","errorTraceClassName":"com.ibm.ws.webcontainer.webapp.WebApp","errorTraceMethodName":"handleRequest","errorTraceLineNumber":3944},{"errorTraceFileName":"WebGroup.java","errorTraceClassName":"com.ibm.ws.webcontainer.webapp.WebGroup","errorTraceMethodName":"handleRequest","errorTraceLineNumber":276},{"errorTraceFileName":"WebContainer.java","errorTraceClassName":"com.ibm.ws.webcontainer.WebContainer","errorTraceMethodName":"handleRequest","errorTraceLineNumber":931},{"errorTraceFileName":"WSWebContainer.java","errorTraceClassName":"com.ibm.ws.webcontainer.WSWebContainer","errorTraceMethodName":"handleRequest","errorTraceLineNumber":1592},{"errorTraceFileName":"WCChannelLink.java","errorTraceClassName":"com.ibm.ws.webcontainer.channel.WCChannelLink","errorTraceMethodName":"ready","errorTraceLineNumber":186},{"errorTraceFileName":"HttpInboundLink.java","errorTraceClassName":"com.ibm.ws.http.channel.inbound.impl.HttpInboundLink","errorTraceMethodName":"handleDiscrimination","errorTraceLineNumber":452},{"errorTraceFileName":"HttpInboundLink.java","errorTraceClassName":"com.ibm.ws.http.channel.inbound.impl.HttpInboundLink","errorTraceMethodName":"handleNewRequest","errorTraceLineNumber":511},{"errorTraceFileName":"HttpInboundLink.java","errorTraceClassName":"com.ibm.ws.http.channel.inbound.impl.HttpInboundLink","errorTraceMethodName":"processRequest","errorTraceLineNumber":305},{"errorTraceFileName":"HttpICLReadCallback.java","errorTraceClassName":"com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback","errorTraceMethodName":"complete","errorTraceLineNumber":83},{"errorTraceFileName":"SSLReadServiceContext.java","errorTraceClassName":"com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback","errorTraceMethodName":"complete","errorTraceLineNumber":1784},{"errorTraceFileName":"AioReadCompletionListener.java","errorTraceClassName":"com.ibm.ws.tcp.channel.impl.AioReadCompletionListener","errorTraceMethodName":"futureCompleted","errorTraceLineNumber":165},{"errorTraceFileName":"AbstractAsyncFuture.java","errorTraceClassName":"com.ibm.io.async.AbstractAsyncFuture","errorTraceMethodName":"invokeCallback","errorTraceLineNumber":217},{"errorTraceFileName":"AsyncChannelFuture.java","errorTraceClassName":"com.ibm.io.async.AsyncChannelFuture","errorTraceMethodName":"fireCompletionActions","errorTraceLineNumber":161},{"errorTraceFileName":"AsyncFuture.java","errorTraceClassName":"com.ibm.io.async.AsyncFuture","errorTraceMethodName":"completed","errorTraceLineNumber":138},{"errorTraceFileName":"ResultHandler.java","errorTraceClassName":"com.ibm.io.async.ResultHandler","errorTraceMethodName":"complete","errorTraceLineNumber":204},{"errorTraceFileName":"ResultHandler.java","errorTraceClassName":"com.ibm.io.async.ResultHandler","errorTraceMethodName":"runEventProcessingLoop","errorTraceLineNumber":775},{"errorTraceFileName":"ResultHandler.java","errorTraceClassName":"com.ibm.io.async.ResultHandler$2","errorTraceMethodName":"run","errorTraceLineNumber":905},{"errorTraceFileName":"ThreadPool.java","errorTraceClassName":"com.ibm.ws.util.ThreadPool$Worker","errorTraceMethodName":"run","errorTraceLineNumber":1646}]
|
One answer
It appears the external ID for the executionworkitem resource is incorrect:
Actual: https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/executionworkitem/executionwork123 Referenced: https://SERVER/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA/executionworkitem/executionworkitem123 Comments
Julian Cesar
commented Jun 05 '13, 10:08 a.m.
That is not the problem.
Even just sending <executionresult xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"></executionresult> the result is exactly the same! NullPointerException!
Is it a bug or configuration problem!? If yes, i can create a executionworkitem (with test result) without a executionresult with REST as a Web UI (Create result without a execution).
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.