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

Runtime Configuration Plugin throwing NPE at startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.13.3
    • 5.15.14, 5.16.1, 5.17.0
    • Plugin
    • None
    • Karaf

      both Windows and Linux (CentOS 7)

    Description

      NOTE: running in Karaf

       

      Here is the plugin declaration from activemq.xml - note: have tried by with and without the checkPeriod - both throw the same NPE:

      <plugins>
           <runtimeConfigurationPlugin />
       </plugins>
      <plugins>
          <runtimeConfigurationPlugin checkPeriod="2000" />
      </plugins>
      

      The configuration seems to load fine, but this exception is thrown on every startup.

       

       

      20180213 16:34:25.556 [INFO ] Broker Starting Thread | 150:org.apache.activemq.activemq-osgi | org.apache.activemq.plugin.AbstractRuntimeConfigurationBroker | Unexpected exception during load of: URL [file:/D:/Nextgate/products/ngs/etc/activemq.xml]
      java.lang.NullPointerException
       at org.apache.activemq.plugin.RuntimeConfigurationBroker.getSchema(RuntimeConfigurationBroker.java:232)[150:org.apache.activemq.activemq-osgi:5.13.3]
       at org.apache.activemq.plugin.RuntimeConfigurationBroker.loadConfiguration(RuntimeConfigurationBroker.java:178)[150:org.apache.activemq.activemq-osgi:5.13.3]
       at org.apache.activemq.plugin.RuntimeConfigurationBroker.start(RuntimeConfigurationBroker.java:82)[150:org.apache.activemq.activemq-osgi:5.13.3]
       at org.apache.activemq.broker.BrokerService$6.start(BrokerService.java:2324)[150:org.apache.activemq.activemq-osgi:5.13.3]
       at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:732)[150:org.apache.activemq.activemq-osgi:5.13.3]
       at org.apache.activemq.broker.BrokerService.access$300(BrokerService.java:139)[150:org.apache.activemq.activemq-osgi:5.13.3]
       at org.apache.activemq.broker.BrokerService$3.run(BrokerService.java:711)[150:org.apache.activemq.activemq-osgi:5.13.3]
      20180213 16:34:25.568 [INFO ] Broker Starting Thread | 150:org.apache.activemq.activemq-osgi | org.apache.activemq.transport.TransportServerThreadSupport | Listening for connections at: tcp://127.0.0.1:8206?transport.threadName&transport.maximumConnections=1000&wireFormat.maxFrameSize=104857600
       
      

       

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            pberkman Peter Berkman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m