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

RQMExecutionTool: java.lang.NullPointerException

 Hello,

I'm trying to execute RQM test suite using RQMExecutionTool. I have RQM 5.0.2.

I'm executing following command: java -cp RQMExecutionTool.jar com.ibm.rqm.executiontool.ExecutionUtility -tcerId=246024 -projectName="АС Юпитер" -publicURI="https://hs22-33.ca.sbrf.ru:9445/jazz" -user=user -password=pass -exitOnComplite=true


This brings following error:

log4j:WARN No appenders could be found for logger (com.ibm.rqm.executiontool.Exe

cutionUtility).

log4j:WARN Please initialize the log4j system properly.

Exception in thread "main" java.lang.NullPointerException

        at java.io.Reader.<init>(Unknown Source)

        at java.io.InputStreamReader.<init>(Unknown Source)

        at com.ibm.rqm.executiontool.ExecutionUtility.getHelpContent(Unknown Source)

        at com.ibm.rqm.executiontool.ExecutionUtility.executeCommands(Unknown Source)

        at com.ibm.rqm.executiontool.ExecutionUtility.main(Unknown Source)

 

0 votes

Comments

I am not sure if command "java -cp RQMExecutionTool.jar com.ibm.rqm.executiontool.ExecutionUtility " would work or not as I cant find any example suggesting to do like that in readme file.

but at least "

-exitOnComplite=true" is not correct. it should be like -exitOnComplete=true



2 answers

Permanent link
A  few things were going on there.
1. There was a typo in the command line, as Don pointed out.
2. The RQMExecutionTool_readme.txt file is not in the current directory - hence the NullPointerException, as the tool tried to display the help content (due to the wrong parameter mentioned above) in this file but could not open it.
3. The log4j.properties file is not in the current directory - hence the two "log4j:WARN" messages for the same reason as above.

I guess you only took the .jar file from the package and try to use it. You should've extracted the whole package as is, and there would have been no problems. Also, you can run the tool in an easier way as
    java -jar RQMExecutionTool.jar -tcerId=......

0 votes

Comments

Thanks Donald!

I've tried to follow your recommendations and it looks like the utility has a problem with Russian characters:

D:\Data\Projects\UCD\plugin\RQM-Extras-ExecutionTool-5.0.2>java -jar RQMExecutionTool.jar -tcerId=246024 -projectName="АСЮпитер" -publicURI="https://hs22-33.ca.sbrf.ru:9445/jazz" -user="*" -password="*" -exitOnComplete=true

Unable to find project: └ яшЄхЁ. 

 Procesing Command Line arguments for Test Execution Logging in to the server Attempting to create SSL_TLS context java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available Unable to create SSL_TLS context, trying TLS Successfully created an HTTP client Attempting to create SSL_TLS context java.security.NoSuchAlgorithmException: SSL_TLS SSLContext not available Unable to create SSL_TLS context, trying TLS Connection to RQM Server is established Resolve project alias name if necessaryUnable to find project: └ яшЄхЁ. 

Timur,


Try passing the project alias name, it should work. (To get project alias name, browse to https://[server name]:9443/context_root/service/com.ibm.rqm.integration.service.IIntegrationService/projects)

Regards,
Mehul 

See if you can resolve it by using the "chcp" command or regional settings, as mentioned in the below post.
http://stackoverflow.com/questions/388490/unicode-characters-in-windows-command-line-how


Permanent link
Timur,

Commandline option -cp will not work, try with option -jar; for incorrect argument (-exitOnComplite), you should get 'java.lang.IllegalArgumentException'. 

Please refer Wiki for detailed syntax.

Regards,
Mehul

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: Jul 04 '16, 11:09 a.m.

Question was seen: 2,790 times

Last updated: Jul 05 '16, 8:12 p.m.

Confirmation Cancel Confirm