RQMCopyUtil exception on copying artifacts
![]()
Trying to run a simple copy of all artifacts using the example in the RQMCopyUtility wiki. The command I'm running:
java -jar RQMCopyUtil.jar -s=https://myhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AMI_Test_4 -us=myuserID -pws=mypassword -d=https://myhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AMI_Parent -l=importlog.txt "myhost", "mypassword", etc. replace the actual values. I am able to successfully run commands against the jar (checking version, list all supported artifacts). However, the above command (and many variations of it) all spout out the following: Dec 10, 2009 11:19:23 AM com.ibm.rqm.ct.util.Logger logInfo I've also tried using the non-SSL urls, but that creates an SSL handshake error and I've previously learned nearly all the utilities are written for SSL anyway. Looking for insight into the exception and/or this "syntactically incorrect()" error. Also, in the command prompt where the command is running, an additional message appears:
|
8 answers
![]()
I found that I am able to browse to the services via URL for the server:
https://myserver:9443/jazz/secure/service/com.ibm.team.repository.service.ITeamServerStatusContentService/ This displays a long list of services, among which is the IIntegrationService used in the RQMCopyUtil.jar (link is for com.ibm.rqm.integration.service.IIntegrationService). That service is a html link, but clicking on it returns that syntax error. HTTP Status 400 type: status report message: <blank> description: The request sent by the client was syntactically incorrect (). Apache Tomcat/5.5.23 Any ideas why even this link is broken? |
![]()
Additional testing has revealed that the problem is actually due to renaming the source project in RQM:
1) Project names in RQM were changed because they originally had spaces in them, and the RQM online help recommends AGAINST this practice. 2) The RQMCopyUtility wiki states "you must use the project alias name if you have renamed your project area. The project alias name is the original name of the project." --Calling the original name the alias is in itself confusing...this is due mainly to my interpretation, as I tend to think of an "alias" as a current name or any past name that is NOT the original. --More importantly, there appears to be no record of what the project's original name was anywhere in the RQM administration web pages. I was able to run the RQMCopyUtility against the default "Quality Manager" project (which I would like to note has spaces in the name), which I feel rules out a problem with the services as previously suspected. At this point, I need a method to locate the original name of an RQM project. The only way I seem to be able to get to it is directly querying the database, getting data from the table.field: .. A method to get this info through the RQM admin website would be preferred. Otherwise, in a production environment there is additional work and approvals we'd have to perform to directly query the underlying database of a third-party product. I would also recommend some type of warning be triggered when renaming a project. |
![]()
Hello,
Sorry for the confusion! One way to see this project information, including aliases, is to use this feed: https://:/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/projects Here is the reference info on that feed service (fyi): https://jazz.net/wiki/bin/view/Main/RqmApi#Project_Feed_Service Hope that helps. Regards, John Additional testing has revealed that the problem is actually due to renaming the source project in RQM: |
![]()
I'm having issue with RQMCopyUtility 3.0.1.1 when coping project that has spaces in the name alias. Is this supposed to work?
>java -jar RQMCopyUtility.jar -s=https://jazz.net/sandbox01-qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources /belisar%27s+Project+%28Quality+Management%29 -us=myid -pws=xxxx -d=https://myhost:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SampleProject -ud=myid -pwd=xxxx -l=importlog.txt com.ibm.rqm.ct.util.Logger logError SEVERE: java.lang.IllegalArgumentException: URL not valid, parsing hostname of: https://jazz.net/sandbox01-qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/belisar%27s+Project+%28Quality+Management%29 |
![]()
See https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/53530.
|
![]()
Thanks, Paul. That helps with spaces.
Actually, something else in that URL causing trouble - absence of port number. As the code in CopyUtil expects port number, I'm getting exception: try { host = url.substring(url.indexOf("//") + "//".length(), url.lastIndexOf(":")); } catch (Exception e) { throw new IllegalArgumentException("URL not valid, parsing hostname of: " + url); } |
![]()
This is a defect. Please open a defect (https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.newWorkItem).
|
![]()
Thank you.
I created defect: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=59816 |
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.