RQMExecutionTool: java.lang.NullPointerException
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
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
Thanks Donald!
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,
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
Comments
Don Yang
Jul 05 '16, 1:12 a.m.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