Skip to navigation

JON Command Line Client (rhq-cli) fails to start with NullPointerException on OpenJDK 6 in RHEL 5

Updated 2011-05-05T19:58:09+00:00

Issue

  • When I start rhq-cli.sh I get the following error:
    Exception in thread "main" java.lang.NullPointerException
         at org.rhq.enterprise.client.commands.ScriptCommand.<init>(ScriptCommand.java:83)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
         at java.lang.Class.newInstance0(Class.java:372)
         at java.lang.Class.newInstance(Class.java:325)
         at org.rhq.enterprise.client.ClientMain.initCommands(ClientMain.java:118)
         at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:103)
    
  • Starting rhq-cli.sh fails with java.lang.NullPointerException

Environment

  • JBoss Operations Network (JON) 2.4, 2.4.1
  • JON Command-Line Client tool rhq-cli
  • Red Hat Enterprise Linux (RHEL) 5.6
  • OpenJDK 1.6.0 - java-1.6.0-openjdk

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.