It's all about the answers!

Ask a question

Basic copy utility arguments


James G (113) | asked Dec 04 '18, 3:32 p.m.
edited Dec 04 '18, 3:41 p.m.

 Hi, I'm struggling with the rqm copy utilty arguments. I'm just trying to do something really basic like copy a test plan from one project to another project on another server.


I've been working with arguments like this 
-s="https://myhost:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/URLencodedProjectName"  -us=user -pws=password -d="https://myhost_2:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/otherUrlEncodedProject" -ud=user -pwd=password -a=testplan -l=importlog.txt

but I'm receiving errors like this:
04 Dec 2018 15:29:35,807-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
04 Dec 2018 15:29:35,891-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
04 Dec 2018 15:29:35,895-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
04 Dec 2018 15:29:48,916-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Error logging in to source: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
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(JFSHttpsClient.java:100)
at com.ibm.rqm.ct.Application.run(CopyUtil.java:152)
at com.ibm.rqm.ct.CopyUtil.main(CopyUtil.java:43)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 16 more
04 Dec 2018 15:29:48,926-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
04 Dec 2018 15:29:48,949-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body: 
04 Dec 2018 15:29:48,952-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!
04 Dec 2018 15:29:48,954-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.
04 Dec 2018 15:29:48,972-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body: 
04 Dec 2018 15:29:48,975-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the destination server!

The project name is simply the literal name that shows up in the rqm web view just url encoded, correct? I think I must be a bit off on the formatting and was hoping someone could point me in the right direction.

5 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Dec 05 '18, 10:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Looks like an issue logging into the source server.  Check the user name/password.  Also, the project area alias is used in the URLs:


Note: you must use the project alias name if you have renamed your project area. The project alias name is the original name of the project. <context> will be either qm or jazz. For more information about finding the project alias, see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias.

Source: https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Argument_Reference


permanent link
Paul Slauenwhite (8.4k12) | answered Dec 05 '18, 10:24 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

 Looks like an issue logging into the source server.  Check the user name/password.  Also, the project area alias is used in the URLs:


Note: you must use the project alias name if you have renamed your project area. The project alias name is the original name of the project. <context> will be either qm or jazz. For more information about finding the project alias, see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias.

Source: https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Argument_Reference


permanent link
James G (113) | answered Dec 19 '18, 9:25 a.m.

 Alright, so if I pull the project feed as follows 


https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects


For the source project, I see this


<id>https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/Project+Area+to+verify+Template</id>;

    <updated></updated>

    <title type="text">N+1 RQM Team Project</title>

    <summary type="text">Alias: Project+Area+to+verify+Template</summary>

    <link href="https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/Project+Area+to+verify+Template" rel="alternate" type="application/xml" title=""/>

    <link href="https://server:9443/qm/web/console/N%2B1%20RQM%20Team%20Project" rel="enclosure" type="text/html" title="Web Console"/>

    <content type="application/xml">

      <ns2:project xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/terms/" xmlns:ns7="http://www.w3.org/1999/02/22-rdf-syntax-ns#‌" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns10="http://open-services.net/ns/core#‌" xmlns:ns11="http://open-services.net/ns/qm#‌" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns13="http://www.w3.org/2002/07/owl#‌" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns21="http://www.w3.org/1999/XSL/Transform">;

        <ns3:identifier>https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects/Project+Area+to+verify+Template</ns3:identifier>;

        <ns3:title>N+1 RQM Team Project</ns3:title>

        <ns3:description>Alias: Project+Area+to+verify+Template</ns3:description>

        <ns2:alias type="string">Project+Area+to+verify+Template</ns2:alias>

        .

        .

        .


So I assume that the alias for this is Project+Area+to+verify+Template. After URI encoding that and adding it to the parameters I have:


-s="https://server:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Project%2BArea%2Bto%2Bverify%2BTemplate" -sc="https://server:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_4kSlMLAZEeeKj9Ue-jeIAA" -us=user -pws=**** -d="https://server:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Tools%2Band%2BProcess -dc="https://server:9443/qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_xZYWAaVKEeeJmM8rnaT5WQ" -a=testplan -l=importlog.txt -id=urn:com.ibm.rqm:testplan#‌479



When I run this, I see in the console output, but no log file is created.


19 Dec 2018 08:46:35,633-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context

19 Dec 2018 08:46:35,681-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available

19 Dec 2018 08:46:35,681-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3

19 Dec 2018 08:46:37,980-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Error logging in to source: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)

at sun.security.ssl.AppOutputStream.write(Unknown Source)

at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

at java.io.BufferedOutputStream.flush(Unknown Source)

at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)

at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)

at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)

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(JFSHttpsClient.java:100)

at com.ibm.rqm.ct.Application.run(CopyUtil.java:152)

at com.ibm.rqm.ct.CopyUtil.main(CopyUtil.java:43)

Caused by: java.io.EOFException: SSL peer shut down incorrectly

at sun.security.ssl.InputRecord.read(Unknown Source)

... 16 more

19 Dec 2018 08:46:37,981-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.

19 Dec 2018 08:46:38,046-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0

Status Code:

Response Body: 

19 Dec 2018 08:46:38,046-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!

19 Dec 2018 08:46:38,046-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.

19 Dec 2018 08:46:38,118-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0

Status Code:

Response Body: 

19 Dec 2018 08:46:38,118-0500 [main] INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the destination server!


I did double check the user/password and they are correct.


Comments
Paul Slauenwhite commented Dec 19 '18, 11:33 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

The project alias is Project+Area+to+verify+Template, which is already URL-encoded (see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias).



Paul Slauenwhite commented Dec 19 '18, 1:04 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

permanent link
James G (113) | answered Jan 03 '19, 1:37 p.m.

 I went into the java.security file and attempted commenting MD2 out. I'm still seeing SSL errors:


03 Jan 2019 13:31:34,595-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
03 Jan 2019 13:31:34,667-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
03 Jan 2019 13:31:34,667-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
03 Jan 2019 13:31:37,672-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Error logging in to source: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
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(JFSHttpsClient.java:100)
at com.ibm.rqm.ct.Application.run(CopyUtil.java:152)
at com.ibm.rqm.ct.CopyUtil.main(CopyUtil.java:43)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 16 more
03 Jan 2019 13:31:37,673-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
03 Jan 2019 13:31:37,683-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body: 
03 Jan 2019 13:31:37,683-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the source server!
03 Jan 2019 13:31:37,683-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.
03 Jan 2019 13:31:37,690-0500 [main] ERROR com.ibm.rqm.ct.CopyUtil: Log out error (response code) - 0
Status Code:
Response Body: 
03 Jan 2019 13:31:37,690-0500 [main]  INFO com.ibm.rqm.ct.CopyUtil: RQM Copy Utility failed to disconnect from the destination server!


permanent link
Paul Slauenwhite (8.4k12) | answered Jan 07 '19, 7:22 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} </style>

Attempting to start the command line adapter when TLS 1.2 is used and the -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" argument is not set will result in a connection handshake failure. If using TLS 1.2, ensure the -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" argument is included in order to ensure a successful connection.


Source: RQM Copy Utility readme.

Your answer


Register or to post your answer.