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.
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.
3 answers
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></style> </head><body><h1>HTTP Status 400 - </h1><size><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><size><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.
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/<unique>
https://localhost:9443/j
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/<unique>
<unique>, 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?
azz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QA+Sample/requirement/<unique>
<unique>, 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?
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/<unique>
I figured that <unique> 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 "The request sent by the client was syntactically incorrect ()." message as before. Any other ideas, or more information about what this UUID must be?
Regards,
ric