It's all about the answers!

Ask a question

Getting error while copying test artifacts from one project area to another project area in RQM usin RQMCopyUtility?


Raj Asthana (12) | asked Aug 29 '17, 6:21 a.m.

 Hi,

I am using RQM v6.0.2 . I have created Test Plan, Test Case and Test Script on one project area and now want to create the same Test Plan, Test Case and Test Script on another project area.
I have tried to use RQMCopyUtility and refer the following link https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Setup_Considerations
to set up the environment.

Tried to run the following operation in different ways:


But got the same error as mentioned below:

29 Aug 2017 15:38:42,602+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
29 Aug 2017 15:38:42,670+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
29 Aug 2017 15:38:42,670+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
29 Aug 2017 15:38:44,725+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting processing of artifact type: builddefinition
29 Aug 2017 15:38:44,728+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: builddefinition
29 Aug 2017 15:38:44,766+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
29 Aug 2017 15:38:47,795+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1
29 Aug 2017 15:38:50,798+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: General REST Exception: RestException executing: GET Artifact Feed, RC: 400, message: <html><head><title>Apache Tomcat/7.0.59 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-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-serif;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 syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.59</h3></body></html>
29 Aug 2017 15:38:50,798+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: FAILURE!
29 Aug 2017 15:38:50,798+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
29 Aug 2017 15:38:50,843+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!
29 Aug 2017 15:38:50,844+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.
29 Aug 2017 15:38:50,878+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the destination server!

Can someone help me to run the operation successfully?

Thanks in advance.


Comments
Raj Asthana commented Aug 29 '17, 8:30 a.m. | edited Aug 30 '17, 1:01 a.m.

 Hi,

Again I have tried to run RQMCopyUtility on another server using the same operation 
and got the following error:
29 Aug 2017 17:54:38,657+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
29 Aug 2017 17:54:38,727+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
29 Aug 2017 17:54:38,727+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
29 Aug 2017 17:56:04,640+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: Error logging in to source: java.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at com.ibm.rqm.ct.client.internal.TrustingSSLProtocolSocketFactory.createSocket(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.ibm.rqm.ct.client.internal.JFSHttpsClient.login(Unknown Source)
at com.ibm.rqm.ct.Application.run(Unknown Source)
at com.ibm.rqm.ct.CopyUtil.main(Unknown Source)
29 Aug 2017 17:56:04,643+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
29 Aug 2017 17:57:28,662+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body: 
29 Aug 2017 17:57:28,662+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!
29 Aug 2017 17:57:28,662+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.

Can any one help me for the same?

Thanks

One answer



permanent link
Don Yang (7.7k21114139) | answered Aug 30 '17, 1:09 a.m.

Hi, Raj

The first thing to check is whether the project area alias used in the source and target projects are correct as CopyUtil uses project alias. you can run
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projects
to find out whether the project alias you used are correct

From the first error:

29 Aug 2017 15:38:44,728+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: builddefinition
29 Aug 2017 15:38:44,766+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
29 Aug 2017 15:38:47,795+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1

You may add i=builddefinition to filter the builddefinition type from the copy and see if it helps. you can also try to copy test plan or test case or test script and see if the copyUtil works in your environment or not first.

For the end error
Error logging in to source: java.net.ConnectException: Connection timed out: connect

you'd better check if the user specified has the correct id and password for the project(any problem in accessing to the web with the same user?)


Comments
Raj Asthana commented Aug 30 '17, 3:07 a.m. | edited Aug 30 '17, 3:31 a.m.

 Hi Yang,

Thank you very much for your response.
For error 1: as you suggested, I have checked the project alias and it seems to me fine. Also I have added i=builddefinition in the command after that got the error message as below:
Run the command: 
Error1:
30 Aug 2017 12:33:00,166+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
30 Aug 2017 12:33:00,234+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
30 Aug 2017 12:33:00,234+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
30 Aug 2017 12:33:02,490+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting processing of artifact type: buildrecord
30 Aug 2017 12:33:02,522+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: buildrecord
30 Aug 2017 12:33:02,814+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
30 Aug 2017 12:33:05,877+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1
30 Aug 2017 12:33:08,879+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: General REST Exception: RestException executing: GET Artifact Feed, RC: 400, message: <html><head><title>Apache Tomcat/7.0.59 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-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-serif;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 syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.59</h3></body></html>
30 Aug 2017 12:33:08,879+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: FAILURE!
30 Aug 2017 12:33:08,879+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
30 Aug 2017 12:33:09,977+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!
30 Aug 2017 12:33:09,978+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.
30 Aug 2017 12:33:10,040+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the destination server!

For Error2:
The command I have run on another server which I need to connect through VPN, it could be the cause to connect to the server?

Thanks for your guidance.



Don Yang commented Aug 30 '17, 3:36 a.m.

for error one, you can see now the error  becomes:

30 Aug 2017 12:33:02,522+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: buildrecord
30 Aug 2017 12:33:02,814+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400,

so you can add  buildrecord to the ignore list. but it is likely you may see other type having similar error. I am not sure if that is the right approach to go, you need to try to copy a certain type such as test script etc only to see if it works or not in your environment, then extend to more artifacts such as including test case and so on. If fundamentally it works, then you can add those types causing the error to ignore list

For error 2, you need to use the same VPN and find out whether the same user can access to URL or not(web), I am not sure if that is causing login error or not as per the error only.

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.