It's all about the answers!

Ask a question

how to rectify " RQMUrlUtility: Server Response code: 400" error ?


Utkarsh Chitransh (11) | asked Mar 11, 12:28 p.m.

I am trying to create a TCR for an existing TER , I am running the below command but not able to succeed

usr/lib/jvm/java-8-oracle/bin/java -jar /home/cloudadmin/RQMUrlUtility/RQMUrlUtility.jar -command PUT -user uchitran@in.ibm.com -password xxx@123 -filepath '/home/cloudadmin/TCRXML_231075.xml' -url https://jazz01.rchland.ibm.com:13443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/executionresult


I am getting this error

RQMUrlUtility: Connected to https://jazz01.rchland.ibm.com:13443 using project "Quality+Manager"
Attempting to create SSL_TLS context
java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available
Unable to create SSL_TLS context, trying SSLv3
RQMUrlUtility: Calling [ HTTP PUT ] method to upload XML from a specified file to URL
RQMUrlUtility: Server Response code: 400
Disconnecting from the IBM Rational Quality Manager server.


This the xml file I am using


<?xml version="1.0" encoding="UTF-8"?>
<ns2:executionresult xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/terms/">
<ns3:title>testing</ns3:title>
<ns5:owner>uchitran@in.ibm.com</ns5:owner>
<ns2:executionworkitem href="https://jazz01.rchland.ibm.com:13443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/executionworkitem/urn:com.ibm.rqm:executionworkitem:219057"/>
</ns2:executionresult>

3 answers



permanent link
Kevin Ramer (4.4k6162184) | answered Mar 11, 2:24 p.m.

Try adding:

-Dcom.ibm.team.repository.transport.client.protocol=TLSv1.2

to the command before the -jar option.


Comments
Utkarsh Chitransh commented Mar 11, 2:42 p.m.

I tried this already but facing the same issue




/usr/lib/jvm/java-8-oracle/bin/java  -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" -jar /home/cloudadmin/RQMUrlUtility/RQMUrlUtility.jar -command PUT -user uchitran@in.ibm.com -password xxx@123 -filepath '/home/cloudadmin/TCRXML_231075.xml' -url https://jazz01.rchland.ibm.com:13443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality%20Manager/executionresult

OUTPUT ::
----------

Default cookie policy RFC_2109 is used.
RQMUrlUtility: Connected to https://jazz01.rchland.ibm.com:13443 using project "Quality+Manager"
Attempting to create protocol context using system property: TLSv1.2
RQMUrlUtility: Calling [ HTTP PUT ] method to upload XML from a specified file to URL
RQMUrlUtility: Server Response code: 400
Disconnecting from the IBM Rational Quality Manager server.




Kevin Ramer commented Mar 11, 2:51 p.m. | edited Mar 11, 3:01 p.m.
But now you are past the SSL handshake.   It's likely that you need to specify a different project than the default 'Quality Manager' that (IIRC) this utility is hard-coded to use absent any override.   Run the command w/o any options after the jar file name which should enumerate the command's options.



Utkarsh Chitransh commented Mar 11, 3:13 p.m.

Yes I ran as you said , it enumerated many options . But now for our problem Quality Manager is our project name , How do you suggest to change it ? I am able to get the "GET" command work for the same , do I need any permission to push data to RQM?


Kevin Ramer commented Mar 11, 3:22 p.m.
I wouldn't change name of the project simply to satisfy this tool.  The XML passes a basic parse.  

I'm out of suggestions as I've never used this utility.

permanent link
Bharath Rao (7956) | answered Mar 12, 2:25 a.m.

 Try using POST, that should work for creating new test artifacts.


permanent link
Don Yang (7.2k2193127) | answered Mar 12, 5:14 a.m.
if you can GET from the same URL, it seems to be correct.
The error is 400 which means bad request. So normally we suspect that
1) is jazz correct for your qm context root or it is qm?
2) is the project area alias used Quality%20Manager correct alias or not
you can check with the project area alias from here:

(suppose jazz is correct)

Check if the user role has xml import and export permissions as well.

Your answer


Register or to post your answer.