Description of problem: Error executing CLI Doc example Version-Release number of selected component (if applicable): JON 3.0.1 RC#1: How reproducible: 100% Steps to Reproduce: 1. CLI Doc example from JON doc 2.2.5 2. ./rhq-cli.sh -u rhqadmin -p rhqadmin 3. record -b myoutfile.txt Actual results: Null Pointer Exception (see below) Expected results: Doc example works. Additional info: [mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin RHQ - RHQ Enterprise Remote CLI 4.2.0.JON.3.0.1.GA Remote server version is: 3.0.1.GA (784c8ce:5cde182) Login successful rhqadmin@localhost:7080$ record -b myoutfile.txt java.lang.NullPointerException at java.io.FileOutputStream.<init>(FileOutputStream.java:201) at java.io.FileWriter.<init>(FileWriter.java:107) at org.rhq.enterprise.client.commands.RecordCommand.startRecording(RecordCommand.java:120) at org.rhq.enterprise.client.commands.RecordCommand.execute(RecordCommand.java:55) at org.rhq.enterprise.client.ClientMain.executePromptCommand(ClientMain.java:308) at org.rhq.enterprise.client.ClientMain$1.run(ClientMain.java:262) at java.lang.Thread.run(Thread.java:636)
12/30/2012 BZ triage meeting mfoley, ccrouch, loleary, asantos
Fixed in master - http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=55a89fa - we now throw a command line parse exception if the -f option is not specified, e.g.: rhqadmin@localhost:7080$ record -b org.rhq.enterprise.client.script.CommandLineParseException: The file option must be specified. at org.rhq.enterprise.client.commands.RecordCommand.parseArgs(RecordCommand.java:100) at org.rhq.enterprise.client.commands.RecordCommand.execute(RecordCommand.java:47) at org.rhq.enterprise.client.ClientMain.executePromptCommand(ClientMain.java:288) at org.rhq.enterprise.client.ClientMain$1.run(ClientMain.java:242) at java.lang.Thread.run(Thread.java:662)
Moving to ON_QA as there is a new binary 3.0.1.GA RC2 available here to test with: https://brewweb.devel.redhat.com//buildinfo?buildID=197202
Verified on 3.0.1.GA RC2 build (Build Number: b2cb23b:859b914) If the -f option is not specified, it throws a CommandLineParseException: The file option must be specified. [root@suniltest bin]# ./rhq-cli.sh -u rhqadmin -p rhqadmin RHQ Enterprise Remote CLI 4.2.0.JON.3.0.1.GA Remote server version is: 3.0.1.GA (b2cb23b:859b914) Login successful rhqadmin@localhost:7080$ record -b myoutfile.txt org.rhq.enterprise.client.script.CommandLineParseException: The file option must be specified. at org.rhq.enterprise.client.commands.RecordCommand.parseArgs(RecordCommand.java:102) at org.rhq.enterprise.client.commands.RecordCommand.execute(RecordCommand.java:49) at org.rhq.enterprise.client.ClientMain.executePromptCommand(ClientMain.java:309) at org.rhq.enterprise.client.ClientMain$1.run(ClientMain.java:263) at java.lang.Thread.run(Thread.java:619) rhqadmin@localhost:7080$ ---------------------------- Verified that specifying the file option works: rhqadmin@localhost:7080$ record -b -f myoutfile.txt
Bulk closing of old issues in VERIFIED state.