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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.6.0
    • 5.7.0
    • Broker
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: