Cannot POST OSLC Automation Result
I use Eclipse Lyo to interact with IBM's REST interface. I have problems, when I POST a new Automation Result: Steps to reproduce:
Problem:
Questions:
|
Accepted answer
John, this appears to be a defect. Please open a RQM defect and attach your XML files and add a reference to this post.
Hannes H. selected this answer as the correct answer
|
6 other answers
Paul Slauenwhite (8.4k●1●2)
| answered Feb 19 '13, 6:03 a.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Feb 19 '13, 6:04 a.m.
John, can you provide the rest of the stack trace of the IllegalArgumentException? At first glance, this appears to be a RQM defect.
Regarding debugging, the HTTP response code/content + RQM log (https://jazz.net/wiki/bin/view/Main/RqmApi#Troubleshooting) are the only sources of debug information. |
Hello Paul!
Thank your for your answer. Here is the full stack trace: ------------------------------------------------------------------------------------------------------------------------------------------ 2013-02-19 10:22:11,745 [ http-bio-9443-exec-369] ERROR com.ibm.rqm.oslc.service - AbstractOslcService:handleOslcRequest AQXCM5011E Server error executing POST https://myserver:9443/qm/oslc_auto_test/contexts/_bcAwIHmmEeKhG4-VbG_jOg/resources/com.ibm.rqm.execution.ExecutionResult (500). java.lang.IllegalArgumentException: Item Handle must not be null at com.ibm.team.repository.service.internal.RepositoryItemService.fetchItem(RepositoryItemService.java:500) at sun.reflect.GeneratedMethodAccessor317.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy1275.fetchItem(Unknown Source) at com.ibm.team.repository.service.internal.ComponentRepositoryItemService.fetchItem(ComponentRepositoryItemService.java:592) at com.ibm.rqm.oslc.automation.test.AutomationResultTestResultLifecycleManager.create(AutomationResultTestResultLifecycleManager.java:365) at com.ibm.rqm.oslc.automation.test.AutomationResultTestResultLifecycleManager.create(AutomationResultTestResultLifecycleManager.java:1) at sun.reflect.GeneratedMethodAccessor1578.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy3189.create(Unknown Source) at com.ibm.rqm.oslc.service.AbstractOslcService$1.run(AbstractOslcService.java:1170) at com.ibm.rqm.oslc.service.AbstractOslcService$1.run(AbstractOslcService.java:1) at com.ibm.team.repository.service.internal.PrimitiveTransactionService$3.run(PrimitiveTransactionService.java:176) at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$Transaction.run(RepositoryDatabase.java:488) at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$1.run(RepositoryDatabase.java:312) at com.ibm.team.repository.service.internal.rdb.ConnectionPoolService.withCurrentConnection(ConnectionPoolService.java:381) at sun.reflect.GeneratedMethodAccessor266.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy1142.withCurrentConnection(Unknown Source) at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runTransaction(RepositoryDatabase.java:308) at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runInTransaction(RepositoryDatabase.java:263) at com.ibm.team.repository.service.internal.PrimitiveTransactionService.runInTransaction(PrimitiveTransactionService.java:110) at com.ibm.team.repository.service.internal.PrimitiveTransactionService.runInTransaction(PrimitiveTransactionService.java:105) at sun.reflect.GeneratedMethodAccessor364.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy1178.runInTransaction(Unknown Source) at com.ibm.team.repository.service.internal.TransactionService.runInTransaction(TransactionService.java:37) at sun.reflect.GeneratedMethodAccessor363.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy1256.runInTransaction(Unknown Source) at com.ibm.rqm.oslc.service.AbstractOslcService.handleResourceRequest(AbstractOslcService.java:1168) at com.ibm.rqm.oslc.service.AbstractOslcService.handleOslcRequest(AbstractOslcService.java:414) at com.ibm.rqm.oslc.service.AbstractOslcService.perform_POST(AbstractOslcService.java:315) at com.ibm.team.repository.service.TeamRawService.service(TeamRawService.java:90) at sun.reflect.GeneratedMethodAccessor1391.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347) at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) at $Proxy2134.service(Unknown Source) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doRestService(AbstractTeamServerServlet.java:914) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:2100) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1924) at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1800) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120) at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:133) at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:154) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:336) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) at java.lang.Thread.run(Thread.java:738) |
John, apologies for the delay response.
Looks like the URI in the oslc_auto:producedByAutomationRequest property is missing the item ID. Can you post the AutomationResult resource XML? |
Hi, here is the AutomationResult:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:j.0="http://open-services.net/ns/qm#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:j.1="http://open-services.net/ns/auto#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" > <rdf:Description rdf:nodeID="A0"> <rdf:subject rdf:nodeID="A1"/> <rdf:predicate rdf:resource="http://open-services.net/ns/auto#reportsOnAutomationPlan"/> <rdf:object rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.TestcaseExecutionRecord/_I9fv0IT-EeKgoPI5P52Faw"/> <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/> </rdf:Description> <rdf:Description rdf:nodeID="A2"> <rdf:subject rdf:nodeID="A1"/> <rdf:predicate rdf:resource="http://open-services.net/ns/auto#producedByAutomationRequest"/> <rdf:object rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.ExecutionRequest/_B1IUEYUAEeKgoPI5P52Faw"/> <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"/> </rdf:Description> <rdf:Description rdf:nodeID="A1"> <j.0:reportsOnTestCase rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://jazz.net/sandbox02-qm/oslc_qm/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.planning.VersionedTestCase/_0eUxsXT-EeKiILFa-2lqaQ</j.0:reportsOnTestCase> <j.1:state rdf:resource="http://open-services.net/ns/auto#new"/> <j.1:verdict rdf:resource="http://open-services.net/ns/auto#passed"/> <dcterms:title rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">Manueller Testfall</dcterms:title> <j.1:reportsOnAutomationPlan rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.TestcaseExecutionRecord/_I9fv0IT-EeKgoPI5P52Faw"/> <j.1:producedByAutomationRequest rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.ExecutionRequest/_B1IUEYUAEeKgoPI5P52Faw"/> <rdf:type rdf:resource="http://open-services.net/ns/auto#AutomationResult"/> </rdf:Description> </rdf:RDF> Comments The https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.ExecutionRequest/_B1IUEYUAEeKgoPI5P52Faw URL looks good. Can you GET this resource using Poster and/or HttpRequester with the following request headers:
|
Yes, I can get the ExecutionRequest. Here is the xml from another run:
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rqm_auto="http://jazz.net/ns/auto/rqm#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#" xmlns:acp="http://jazz.net/ns/acp#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:oslc_auto="http://open-services.net/ns/auto#" xmlns:oslc="http://open-services.net/ns/core#" xmlns:oslc_qm="http://open-services.net/ns/qm#" xmlns:bp="http://open-services.net/ns/basicProfile#" > <rdf:Description rdf:about="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_PROJECT_ALIAS"> <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Demo+%28Quality+Management%29</rdf:value> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RQM_PROJECT_ALIAS</oslc:name> <rdf:type rdf:resource="http://open" -services.net/ns/auto#ParameterInstance"/> </rdf:Description> <rdf:Description rdf:about="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_WEBID"> <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1187</rdf:value> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RQM_TESTCASE_WEBID</oslc:name> <rdf:type rdf:resource="http://open-services.net/ns/auto#ParameterInstance"/> </rdf:Description> <rdf:Description rdf:about="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_NAME"> <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Manueller Testfall</rdf:value> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RQM_TESTCASE_NAME</oslc:name> <rdf:type rdf:resource="http://open-services.net/ns/auto#ParameterInstance"/> </rdf:Description> <rdf:Description rdf:about="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_PROJECT_NAME"> <rdf:value rdf:datatype="http://www.w3.org" /2001/XMLSchema#string">Demo (Quality Management)</rdf:value> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RQM_PROJECT_NAME</oslc:name> <rdf:type rdf:resource="http://open-services.net/ns/auto#ParameterInstance"/> </rdf:Description> <rdf:Description rdf:about="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.ExecutionRequest/_AmVN8IVpEeKgoPI5P52Faw"> <oslc_auto:outputParameter rdf:resource="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_EXECUTIONRECORD_NAME"/> <dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-05T07:48:03.348Z</dcterms:modified> <oslc:serviceProvider rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/services.xml"/> <dcterms:contributor rdf:resource="https://jazz.net/sandbox02-jts/users/swqljh"/> <oslc_auto:outputParameter rdf:resource="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52F" aw:RQM_PROJECT_NAME"/> <oslc:instanceShape rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/shape/resource/com.ibm.rqm.execution.ExecutionRequest"/> <oslc_auto:state rdf:resource="http://open-services.net/ns/auto#queued"/> <rqm_auto:progress rdf:datatype="http://www.w3.org/2001/XMLSchema#long">0</rqm_auto:progress> <dcterms:creator rdf:resource="https://jazz.net/sandbox02-jts/users/swqljh"/> <rqm_auto:taken rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</rqm_auto:taken> <rdf:type rdf:resource="http://open-services.net/ns/auto#AutomationRequest"/> <acp:accessControl rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/accessControl/_pv6fkFllEeKaV_p6uZjjYw"/> <dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Execute Manueller Testfall</dcterms:title> <dcterms:relation rdf:resource="https://jazz.net/sandbox02-qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_pv6fkFllEeKaV_p6uZjjYw/tasks/u" rn:com.ibm.rqm:tasks:2112"/> <oslc_auto:outputParameter rdf:resource="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_PROJECT_ALIAS"/> <rqm_auto:requestType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">EXECUTE</rqm_auto:requestType> <oslc_auto:outputParameter rdf:resource="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_WEBID"/> <dcterms:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.ExecutionRequest/_AmVN8IVpEeKgoPI5P52Faw</dcterms:identifier> <rqm_auto:uploadAttachmentUrl rdf:resource="https://jazz.net/sandbox02-qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Demo+%28Quality+Management%29/attachment"/> <rqm_auto:stateUrl rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.ExecutionRequest/_AmVN8IVpEeKgoPI5P52Faw?oslc." properties=oslc_auto:state"/> <oslc_auto:outputParameter rdf:resource="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_EXECUTIONRECORD_WEBID"/> <oslc_auto:outputParameter rdf:resource="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_NAME"/> <oslc_auto:executesAutomationPlan rdf:resource="https://jazz.net/sandbox02-qm/oslc_auto_test/contexts/_pv6fkFllEeKaV_p6uZjjYw/resources/com.ibm.rqm.execution.TestcaseExecutionRecord/__Tr6UIVoEeKgoPI5P52Faw"/> <dcterms:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-03-05T07:48:03.279Z</dcterms:created> </rdf:Description> <rdf:Description rdf:about="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_EXECUTIONRECORD_WEBID"> <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2177</rdf:value> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RQM_TESTCASE_EXECUTIONRECORD_WEBID</oslc:name> <rdf:type rdf:resource="http://open-servic" es.net/ns/auto#ParameterInstance"/> </rdf:Description> <rdf:Description rdf:about="urn:com.ibm.rqm.planning.VariableValue:_AmVN8IVpEeKgoPI5P52Faw:RQM_TESTCASE_EXECUTIONRECORD_NAME"> <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Manueller Testfall</rdf:value> <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RQM_TESTCASE_EXECUTIONRECORD_NAME</oslc:name> <rdf:type rdf:resource="http://open-services.net/ns/auto#ParameterInstance"/> </rdf:Description> </rdf:RDF> |
|
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.