[jboss-jira] [JBoss JIRA] (AS7-6911) jconsole fails if trying to connect to a standalone EAP instance running with offset ports

RH Bugzilla Integration (JIRA) issues at jboss.org
Tue Aug 4 03:13:05 EDT 2015


    [ https://issues.jboss.org/browse/AS7-6911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095245#comment-13095245 ] 

RH Bugzilla Integration commented on AS7-6911:
----------------------------------------------

Ivo Studensky <istudens at redhat.com> changed the Status of [bug 1215278|https://bugzilla.redhat.com/show_bug.cgi?id=1215278] from POST to MODIFIED

> jconsole fails if trying to connect to a standalone EAP instance running with offset ports
> ------------------------------------------------------------------------------------------
>
>                 Key: AS7-6911
>                 URL: https://issues.jboss.org/browse/AS7-6911
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: EAP 6.1.0.Alpha (7.2.0.Final)
>         Environment: All
>            Reporter: Jay Kumar SenSharma
>            Assignee: Stan Silvert
>              Labels: cli
>
> If JBoss AS7/8 is started using port-offset as following:
> ie. with -Djboss.socket.binding.port-offset=100
> Then While connecting to it using "jconsole.sh" as a Local Process it throws the following Exception:
> +++++++++++++++++++++++++++++
> Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Error connecting to JBoss AS.
>         at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:80)
>         at sun.tools.jconsole.VMPanel.createPluginTabs(VMPanel.java:641)
>         at sun.tools.jconsole.VMPanel.propertyChange(VMPanel.java:315)
>         at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
>         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:75)
>         at javax.swing.event.SwingPropertyChangeSupport$1.run(SwingPropertyChangeSupport.java:80)
>         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
>         at java.awt.EventQueue.access$000(EventQueue.java:84)
>         at java.awt.EventQueue$1.run(EventQueue.java:607)
>         at java.awt.EventQueue$1.run(EventQueue.java:605)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
>         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
>         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> Caused by: java.lang.NullPointerException
>         at org.jboss.as.cli.gui.JConsoleCLIPlugin.connectCommandContext(JConsoleCLIPlugin.java:109)
>         at org.jboss.as.cli.gui.JConsoleCLIPlugin.getTabs(JConsoleCLIPlugin.java:77)
> +++++++++++++++++++++++
> And the  Code "org.jboss.as.cli.gui.JConsoleCLIPlugin" classes  Line 109 throws NullPointerException, Because "cliGuiCtx" object is null and not initialized earlier:
> 109   JOptionPane.showMessageDialog(cliGuiCtx.getMainWindow(), message);



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list