It's all about the answers!

Ask a question

Problems with CopyUtility


pietro marella (953130) | asked Dec 01 '11, 11:54 a.m.
Hello. I'm using the CopyUtility util to copy a project A in project B in my RQM 3.0.1.1 deployment.

I'm getting the following error:

........
Copying....https://rationalsrv02:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectA_CLM1+%28Quality+Management%29/template.....

Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Done reading feed for artifact type: requirement
Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Ending processing of artifact type: requirement
Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting processing of artifact type: template
Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Reading feed for artifact type: template
Dec 1, 2011 5:46:20 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Done reading feed for artifact type: template
Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: template testsuite/com.ibm.rqm.planning.templates.testsuite.default
Dec 1, 2011 5:46:20 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Dec 1, 2011 5:46:23 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Exception in thread "main" java.lang.NullPointerException
at com.ibm.rqm.ct.client.internal.RQMRestClient.unmarshal(RQMRestClient.java:425)
at com.ibm.rqm.ct.client.internal.RQMRestClient.getArtifact(RQMRestClient.java:169)
at com.ibm.rqm.ct.artifacts.internal.TemplateArtifactHandler.persist(TemplateArtifactHandler.java:50)
at com.ibm.rqm.ct.CopyUtil.main(CopyUtil.java:280)

The util gets an exception while unmarshalling template artifact ....


Second question I have: to be able to "debug" what was happening, I have compiled the CopyUtility on my eclipse. I had to add the following libraries in my libpath to be able to build the util: javax.xml.bind.jar and stax-api.jar - Why they are not provided with the CopyUtility bundle?

2 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Dec 05 '11, 9:49 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
1) It appears from the stack trace that you are not using the RQM Copy Utility V3.0.1.1. I would suggest downloading/running the RQM Copy Utility V3.0.1.1.

2) You should only need the following JARs, which are packaged in the /lib directory of the RQMCopyUtility.jar:

commons-httpclient-3.0.jar
org.apache.commons.logging_1.0.4.v20080605-1930.jar
commons-codec-1.3.jar
jdom-1.0.jar

Note, you also need Java 6.

permanent link
pietro marella (953130) | answered Dec 05 '11, 11:38 a.m.
Thank you Paul
the problem was I'm not using the jdk6

thank you very much

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.