It's all about the answers!

Ask a question

Unable to download the attachnments with RQMUrlUtility :Got an IOException: java.io.FileNotFoundException


Sravan Kumar Ch (112) | asked Apr 16 '20, 6:15 a.m.
edited Apr 26 '20, 4:02 a.m.
java -jar RQMUrlUtility.jar -command GET -user XXX -password XXX -filepath C:\\RQM_Cucumber_Framework\\Test_Artifacts\\test_data\\ -url https://igarqm01.swg.usma.ibm.com/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/XXXXX+Project/attachment/XXXXX

XXXXX -> this are removed me be since this is related our project.

Version: 6.0.6.1
Below is the details printed by RQMUrlUtility

Default cookie policy RFC_2109 is used.

RQMUrlUtility: Connected to https://igarqm01.swg.usma.ibm.com using project "XXXXXX"
Attempting to create SSL_TLS context
RQMUrlUtility: Calling [ HTTP GET ] method to download an attachment
RQMUrlUtility: Server Response code: 200
RQMUrlUtility: Got an IOException: java.io.FileNotFoundException: C:\XXXX\no-cache="set-cookie, set-cookie2" (The filename, directory name, or volume label syntax is incorrect.)
RQMUrlUtility: If the path contains spaces, surround it with double quotes.
RQMUrlUtility: The directory containing the file must exist and have appropriate permissions.

Disconnecting from the IBM Rational Quality Manager server.

One answer



permanent link
Krupa Gunhalkar (4512) | answered Apr 24 '20, 9:51 a.m.
JAZZ DEVELOPER

 Hi Sravan Kumar,


Please use this link to cross check the command used for downloading the attachments. Also, make sure, the directory structure used for download is accessible and as the error message is saying, the syntax might be incorrect in your case. Try using " " for the filepath.




Hope this helps,
Krupa Gunhalkar


Comments
Sravan Kumar Ch commented Apr 26 '20, 3:51 a.m. | edited Apr 26 '20, 3:55 a.m.

Still facing the same issue, permission and proper to the file path.
I am surprised to see what is the no-cache="set-cookie, set-cookie2".

Even the file not found error is for this file.


Sravan Kumar Ch commented Apr 26 '20, 3:53 a.m.

Got an IOException: java.io.FileNotFoundException: C:\XX\no-cache="set-cookie, set-cookie2" (The filename, directory name, or volume label syntax is incorrect.)
If the path contains spaces, surround it with double quotes.
The directory containing the file must exist and have appropriate permissions.
java.io.FileNotFoundException: C:\XX\no-cache="set-cookie, set-cookie2" (The filename, directory name, or volume label syntax is incorrect.)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:286)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:226)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:112)
        at com.ibm.rqm.url.client.RQMUrlGET.<init>(RQMUrlGET.java:108)
        at com.ibm.rqm.url.UrlUtility.main(UrlUtility.java:339)

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.