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

Syntax error on data import

I'm trying to run the RQM tutorial but when I get to step 1.3, importing data, I get syntax errors for all files.

I tried to diagnose the problems by running through the batch files and manually running one of the commands, to see if I could make sense of the problem. It appears that the problem is in AQXUrlTool.exe, unless the batch files generate incorrect command syntax for AQXUrlTool.exe. Here is a sample command and response:

C:\Program Files\IBM\RQM201\samples\classics>..\..\tools\import\AQXurltool.exe -X PUT -u uuuu:ppppppppppppppp -T AddNewCustomer_Req.xml https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/AddNewCustomer_Req.xml
ERROR: <html><head><title>Apache Tomcat/5.5.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fon
t-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;
background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;
color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : bla
ck;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u
></u></p><p><b>description</b> <u>The request sent by the client was syntactically incorrect ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.28<
/h3></body></html>

I get the same error message for all file imports attempted. I also tried to import using the ADMIN/ADMIN user account with the same results, showing me that this is not the same problem as was submitted by adamiak on 20 May 2009.

Is there a fix for AQXUrlTool.exe available, and if so, how to I get it (short of downloading and re-installing a full RQM 2.0.1.1)? Alternately, can I get the correct command syntax?

INFO: New concurrent install of RQM 2.0.1 (not 2.0.1.1) and RQM 2.0.1.1ifix2.

0 votes



3 answers

Permanent link
I'm trying to run the RQM tutorial but when I get to step 1.3, importing data, I get syntax errors for all files.

I tried to diagnose the problems by running through the batch files and manually running one of the commands, to see if I could make sense of the problem. It appears that the problem is in AQXUrlTool.exe, unless the batch files generate incorrect command syntax for AQXUrlTool.exe. Here is a sample command and response:

C:\Program Files\IBM\RQM201\samples\classics>..\..\tools\import\AQXurltool.exe -X PUT -u uuuu:ppppppppppppppp -T AddNewCustomer_Req.xml https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/AddNewCustomer_Req.xml
ERROR: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.28 - Error report&lt;/title&gt;&lt;style&gt;&lt;H1&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 - &lt;/h1&gt;&lt;size&gt;&lt;p&gt;<b>type</b> Status report&lt;/p&gt;&lt;p&gt;<b>message</b> <u></u>&lt;/p&gt;&lt;p&gt;<b>description</b> <u>The request sent by the client was syntactically incorrect ().</u>&lt;/p&gt;&lt;size&gt;&lt;h3&gt;Apache Tomcat/5.5.28&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;

I get the same error message for all file imports attempted. I also tried to import using the ADMIN/ADMIN user account with the same results, showing me that this is not the same problem as was submitted by adamiak on 20 May 2009.

Is there a fix for AQXUrlTool.exe available, and if so, how to I get it (short of downloading and re-installing a full RQM 2.0.1.1)? Alternately, can I get the correct command syntax?

INFO: New concurrent install of RQM 2.0.1 (not 2.0.1.1) and RQM 2.0.1.1ifix2.


The problem looks like the integration URL:

https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/AddNewCustomer_Req.xml

It should end with the UUID of the imported artifact, not the name of the XML file. As such, it appears to be an defect in install_samples.bat. As a work-around, try using:


https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/&lt;unique&gt;

0 votes


Permanent link
https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/&lt;unique&gt;

&lt;unique&gt;, as in any unique random string that I specify? I note that the import.bat file attempts to define a unique random ID if not specified in the call, by using:
set ID=%TYPE%
set ID=%ID%%RANDOM%
set ID=%ID%%RANDOM%
set ID=%ID%%RANDOM%
However, the %RANDOM% variable is not defined anywhere. Would I be right in defining the ID for each call as %TYPE%nnn, where nnn is a unique 3-digit number of my choice?

0 votes


Permanent link

The problem looks like the integration URL:

https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/AddNewCustomer_Req.xml

It should end with the UUID of the imported artifact, not the name of the XML file. As such, it appears to be an defect in install_samples.bat. As a work-around, try using:


https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/&lt;unique&gt;


I figured that &lt;unique&gt; could be any unique string (excluding special characters), and so I used the filename minus the extension as UUID, but I still received the same &quot;The request sent by the client was syntactically incorrect ().&quot; message as before. Any other ideas, or more information about what this UUID must be?

Regards,

ric

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

Question asked: Mar 04 '11, 6:04 p.m.

Question was seen: 6,510 times

Last updated: Mar 04 '11, 6:04 p.m.

Confirmation Cancel Confirm