ondra@ondra-redhat: ~/work/JON/SVN-QA $ rhq-cli/bin/rhq-cli.sh -u rhqadmin -p rhqadmin --host $RHQ_HOST --file export JAVA_HOME=/home/ondra/sw/tools/jdk/sun160 Remote server version is: 3.0.1.GA(81e26be20d) Login successful Exception in thread "main" java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.rhq.enterprise.client.commands.ScriptCommand.bindScriptArgs(ScriptCommand.java:288) at org.rhq.enterprise.client.commands.ScriptCommand.execute(ScriptCommand.java:121) at org.rhq.enterprise.client.ClientMain.processArguments(ClientMain.java:505) at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:106) ondra@ondra-redhat: ~/work/JON/SVN-QA $
Does the same with touch x ~/work/JON/SVN-QA $ rhq-cli/bin/rhq-cli.sh -u rhqadmin -p rhqadmin --host $RHQ_HOST --file x
-f works. Something is wrong in CmdLineParser.java.
I don't like getopts.