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)
|
2 answers
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=...... Comments
Timur Markunin
commented Jul 05 '16, 6:36 a.m.
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: └╤ ▐яшЄхЁ.
Timur Markunin
commented Jul 05 '16, 6:38 a.m.
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
Donald Nong
commented Jul 05 '16, 8:12 p.m.
See if you can resolve it by using the "chcp" command or regional settings, as mentioned in the below post.
|
Timur,
Commandline option -cp will not work, try with option -jar; for incorrect argument (-exitOnComplite), you should get 'java.lang.IllegalArgumentException'.
Regards,
Mehul
|
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.
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