It's all about the answers!

Ask a question

Receiving a 404 when trying to copy a remotescript resource with an ID that doesn't even exist


Sean Lee-Loy (111) | asked May 30 '13, 3:06 p.m.
retagged May 31 '13, 3:31 p.m. by Laura W. Hinson (16126)
 Hi,

I just started using the RQMCopyUtility to migrate test artifacts from RQM4.0.2 to another 4.0.2 project
and recieved the following error:
Right when it finished all the testcase artifacts it started on the remote scripts (test scripts)

INFO: Already Added: testcase urn:com.ibm.rqm:testcase:1574
30-May-2013 1:06:30 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: testcase urn:com.ibm.rqm:testcase:1574
30-May-2013 1:06:30 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: remotescript urn:com.ibm.rqm:remotescript:8114
30-May-2013 1:06:30 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 404, retry #: 0
30-May-2013 1:06:33 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 404, retry #: 1
30-May-2013 1:06:36 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 404, message: Error 404: SRVE0295E: Error reported: 404

30-May-2013 1:06:36 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 404, message: Error 404: SRVE0295E: Error reported: 404

30-May-2013 1:06:36 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: GET, RC: 404, message: Error 404: SRVE0295E: Error reported: 404

30-May-2013 1:06:36 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: FAILURE!

I then checked the following feed for a particular resource and got the same 404: in my browser

https://clm4poc.rmtools.ssh:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/OLIS+Pre+And+Post+Landing+Test+Validations/remotescript/urn:com.ibm.rqm:remotescript:8114

which means object doesn't exist...

When I went to browse testscripts in RQM and ordered by ID 8114 doesn't show up.  And I know I only have
10 test scripts in this project.   I also checked the feed and only saw the corresponding 10 scripts:


My question is how come the RQMCopyUtility was trying to get a remotescript uri with ID 8114?
Could it be an archived testscript that I deleted from before?  I know archived artifacts are not physically deleted from the repository.





2 answers



permanent link
Ara Masrof (3.2k15) | answered May 30 '13, 3:31 p.m.
JAZZ DEVELOPER
 Sean
You can append  "?includeArchived=true"  to the feed URL to obtain archived artifacts

For example:

https://clm4poc.rmtools.ssh:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/OLIS+Pre+And+Post+Landing+Test+Validations/remotescript/urn:com.ibm.rqm:remotescript:8114?includeArchived=true

 ...if you run this does it return data?

Comments
Sean Lee-Loy commented May 30 '13, 3:41 p.m.

Yes it got directed to this value:


Sean Lee-Loy commented May 30 '13, 3:47 p.m.

Correction: Actually the feed url pasted from above got a 404, 
Still returned the following:
Error 404: SRVE0295E: Error reported: 404

but when I replaced with 8115, it went to the test script location
https://clm4poc.rmtools.ssh:9443/qm/web/console/OLIS%20Pre%20And%20Post%20Landing%20Test%20Validations#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestScript&id=8115

So I replaced 8115 back to 8114 and got the above result
I got the deleted test script picture above


Ara Masrof commented May 30 '13, 4:32 p.m.
JAZZ DEVELOPER

Sean,

There is a known issue in regards to the Copy Utility handling archived objectives in a Test Plan


..you may be encountering something similar.
I'll do a little more digging around and post what I find


Sean Lee-Loy commented May 31 '13, 10:09 a.m.

Hi I even tried using the -is switch to skip this uri, but it still failed at the same point trying to copy the artifact over.

i.e. adding the following:

-is=remotescript:urn:com.ibm.rqm:8114


permanent link
Erica Tran (1.4k7) | answered Jun 07 '13, 3:04 p.m.
JAZZ DEVELOPER
Using the -f parameter, the error was skipped and Sean was able to verify that all other artifacts were copied over. 

 -f, -force
    Continue on failure. Default behavior is to exit at first failure.


Comments
Cesar Sasaki commented Sep 18 '13, 1:51 p.m.

HI Erica

I'm kind on the same problem
I was trying to copy a test case (First to his own project area) but it said something about this error :

SEVERE: RestException executing: GET, RC: 404, message: Error 404: SRVE0295E: Er
ror reported: 404

Sep 18, 2013 12:40:21 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 404, message: Error 404: SRVE0295E: Er
ror reported: 404

Sep 18, 2013 12:40:21 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: GET, RC: 404, message:

When I ignore the sript using the -i=testscript,remotescript. The test case was copied.

How can I copy my test scripts also??

This was my syntax
"C:/Program Files (x86)/java/jre7/bin/java.exe" -jar  RQMCopyUtility.jar -s=https://igarqm01.swg.usma.ibm.com/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/OOBT -us=cjsasaki@pe.ibm.com -pws=pwd -a=testcase -id=urn:com.ibm.rqm:testcase:179551 -l=importlog.txt

Your answer


Register or to post your answer.