You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2012/05/23 17:54:40 UTC

[jira] [Created] (AMQ-3858) Failure to resolve local jmx url for sunJvm can result in npe

Gary Tully created AMQ-3858:
-------------------------------

             Summary: Failure to resolve local jmx url for sunJvm can result in npe
                 Key: AMQ-3858
                 URL: https://issues.apache.org/jira/browse/AMQ-3858
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.6.0
            Reporter: Gary Tully
             Fix For: 5.7.0


calls to ./bin/activemq restart can result in this NPE which is ugly. It should fallback to the default jmxurl in this case.
{code}Connecting to pid: 47706
ERROR: java.lang.NullPointerException
java.lang.NullPointerException
at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:122)
at org.apache.activemq.console.command.AbstractJmxCommand.handleOption(AbstractJmxCommand.java:350)
at org.apache.activemq.console.command.ShutdownCommand.handleOption(ShutdownCommand.java:156)
at org.apache.activemq.console.command.AbstractCommand.parseOptions(AbstractCommand.java:73)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:45)
at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:380)
at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
at org.apache.activemq.console.Main.main(Main.java:111)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQ-3858) Failure to resolve local jmx url for sunJvm can result in npe

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-3858.
-----------------------------

    Resolution: Fixed
      Assignee: Gary Tully

fix in http://svn.apache.org/viewvc?rev=1341945&view=rev

if we cannot resolve the local pid jmxurl we fallback to the default or --jmxurl
                
> Failure to resolve local jmx url for sunJvm can result in npe
> -------------------------------------------------------------
>
>                 Key: AMQ-3858
>                 URL: https://issues.apache.org/jira/browse/AMQ-3858
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.6.0
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.7.0
>
>
> calls to ./bin/activemq restart can result in this NPE which is ugly. It should fallback to the default jmxurl in this case.
> {code}Connecting to pid: 47706
> ERROR: java.lang.NullPointerException
> java.lang.NullPointerException
> at javax.management.remote.JMXServiceURL.<init>(JMXServiceURL.java:122)
> at org.apache.activemq.console.command.AbstractJmxCommand.handleOption(AbstractJmxCommand.java:350)
> at org.apache.activemq.console.command.ShutdownCommand.handleOption(ShutdownCommand.java:156)
> at org.apache.activemq.console.command.AbstractCommand.parseOptions(AbstractCommand.java:73)
> at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:45)
> at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:380)
> at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148)
> at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.activemq.console.Main.runTaskClass(Main.java:257)
> at org.apache.activemq.console.Main.main(Main.java:111)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira