Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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>

0 votes



3 answers

Permanent link

Try adding:

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

to the command before the -jar option.

0 votes

Comments

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.



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.


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?

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

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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 7

Question asked: Mar 11 '20, 12:28 p.m.

Question was seen: 2,156 times

Last updated: Mar 16 '20, 1:43 a.m.

Confirmation Cancel Confirm