Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-3858

Failure to resolve local jmx url for sunJvm can result in npe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Broker
    • Labels:
      None

      Description

      calls to ./bin/activemq restart can result in this NPE which is ugly. It should fallback to the default jmxurl in this case.

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              gtully Gary Tully
              Reporter:
              gtully Gary Tully
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: