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

Solution Unverified - Updated -

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 exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content