It's all about the answers!

Ask a question

How to resolve RQMCopyUtility RestException 400 error?


Vince Thyng (13724153) | asked Jul 27 '16, 11:58 a.m.
edited Jul 27 '16, 12:00 p.m.
RQM 4.0.4.  RQMCopyUtility v4.0.4. Both source and destination are RQM 4.0.4.  Source is Tomcat, Destination is WAS.

Could the & in the source project name be causing this trouble?
Running the command below, I am getting a HTTP response code 400, RestException.  I suspect the INFO messages are informing me of a problem where followRedirects is not allowed, but it is not clear which server it is talking about.  It gives the message twice so perhaps both of them are not allowing followRedirects.  Since it is an INFO instead of an error, I am seeking confirmation.

java -jar RQMCopyUtility.jar -l=importlog.txt -us=issrc@sourceserver.com -pws=password -s="https://sourceserver.com:9447/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SourceProject+2012+&+beyond+QM" -ud=Vapt_user1 -pwd=password -d="https://destserver.co.in:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Test_Project1_QM"

Jul 22, 2016 10:55:19 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Attempting to create SSL_TLS context
Jul 22, 2016 10:55:23 AM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
Jul 22, 2016 10:55:25 AM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
Jul 22, 2016 10:55:37 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting processing of artifact type: attachment
Jul 22, 2016 10:55:37 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Reading feed for artifact type: attachment
Jul 22, 2016 10:55:37 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Jul 22, 2016 10:55:40 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Jul 22, 2016 10:55:43 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: GET Artifact Feed, RC: 400, message: <html><head><title>Apache Tomcat/7.0.61 - Error report</title><sty
le><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;backgro
und-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,
sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-s
erif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - <
/h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The request sent by the client was synt
actically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.61</h3></body></html>
Jul 22, 2016 10:55:43 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: FAILURE!
Disconnecting from the source IBM Rational Quality Manager server.
Disconnecting from the destination IBM Rational Quality Manager server.


Accepted answer


permanent link
Ara Masrof (3.2k15) | answered Jul 27 '16, 12:33 p.m.
JAZZ DEVELOPER
The "&" could be the issue here; try replacing it with "%26"
If you go to https://<server>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects you'll see that alias for the project area in question; you can verify if the "&" is encoded
 

Vince Thyng selected this answer as the correct answer

Comments
Vince Thyng commented Jul 27 '16, 1:13 p.m.

Thanks, that page revealed I needed to use InfoSphere+MDM+2012+%26amp%3B+beyond+QM

I never would have guessed that combination!

Your answer


Register or to post 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.