Running jconsole from the JDK fails to connect to JBoss EAP 6 JMX with NullPointerException

Solution In Progress - Updated -

Issue

jconsole not working when it is run from %JAVA_HOME%\bin\jconsole.bat , we are not using the %JBOSS_HOME%\bin\jconsole.bat, we are passing options to the %JAVA_HOME%\bin\jconsole.bat

%JAVA_HOME%\bin\jconsole.bat -J-Djava.class.path=$JAVA_HOME\lib\jconsole.jar;$JAVA_HOME\lib\tools.jar;jboss-cli-client.jar
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
    at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:83)
    at sun.tools.jconsole.VMPanel.createPluginTabs(VMPanel.java:652)
    at sun.tools.jconsole.VMPanel.propertyChange(VMPanel.java:324)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
    at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92)
    at javax.swing.event.SwingPropertyChangeSupport$1.run(SwingPropertyChangeSupport.java:97)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
    at java.awt.EventQueue.access$300(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:706)
    at java.awt.EventQueue$3.run(EventQueue.java:704)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
    at sun.misc.MetaIndex.mayContain(MetaIndex.java:243)
    at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:830)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:199)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:251)
    at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1305)
    at java.lang.ClassLoader.getResource(ClassLoader.java:1144)
    at java.lang.ClassLoader.getResource(ClassLoader.java:1142)
    at java.lang.Class.getResource(Class.java:2147)
    at org.jboss.as.cli.gui.GuiMain.<clinit>(GuiMain.java:63)
    ... 21 more

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.x

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