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

RQMAPIUtility.jar does not run on some foreign language Windows OSes

I recently had opportunity to use the RQMAPIUtility.jar to obtain information about lab resource reservations.

The information is available in the RQM REST API using the resource type "reservation":

You can obtain these values:
  • /reserveFrom
  • /reserveTo
  • /reservedBy
  • /reservedFor
When running this command I received the below error since the feed information was not parse-able.

PS C:\ibm\JazzTeamServer\server\jre\bin> .\java -jar RQMAPIUtility.jar -c=readAllreservationResources -qm=https://myserver:9443/qm/ -u=myuser -pw=mypass -pa=JKE+Banking+%28%E5%93%81%E8%B3%AA%E7%AE%A1%E7%90%86%29 -l="mylog.txt" -r="reservations.xml" -o

java.io.IOException: Error reading feed 'https://myserver:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects' for artifact type 'projects'.

How to resolve this?

0 votes



One answer

Permanent link
An easy solution was to change this line in com.ibm.rqm.api.internal.util.FeedReader.java to add "UTF-8", since my OS platform uses MS932 as default. I think Japanese, Chinese and other Windows OS would encounter a similar problem.

Document feedDoc = xmlIn.build(new ByteArrayInputStream(xml.getBytes("UTF-8")));​

I would like to suggest to make that (or similar) change, to allow others to run the utility on Windows OSes with different default charsets.

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
× 10,953
× 7,510

Question asked: Nov 12 '19, 7:41 p.m.

Question was seen: 1,256 times

Last updated: Nov 12 '19, 7:41 p.m.

Confirmation Cancel Confirm