Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1186

[Fabric-mq] standalone slave broker throws NullPointer Exception when configuration updated.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.2.1
    • None
    • None
    • None
    • Hide
      • create a standalone (non fabric) master slave setup ( persistence adapter karaf)
      • in the slave brokers karaf container issue the following commands
        config:edit -f io.fabric8.mq.fabric.server-broker
        config:propset whatever abc
        config:update
      
      • after approx 60 seconds the logs contain the following Nullpointer exception
      Could not stop service: org.apache.activemq.store.SharedFileLocker@5a57a58c. Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.activemq.store.SharedFileLocker.doStop(SharedFileLocker.java:102)
      
      Show
      create a standalone (non fabric) master slave setup ( persistence adapter karaf) in the slave brokers karaf container issue the following commands config:edit -f io.fabric8.mq.fabric.server-broker config:propset whatever abc config:update after approx 60 seconds the logs contain the following Nullpointer exception Could not stop service: org.apache.activemq.store.SharedFileLocker@5a57a58c. Reason: java.lang.NullPointerException java.lang.NullPointerException at org.apache.activemq.store.SharedFileLocker.doStop(SharedFileLocker.java:102)

      If the configuration is updated on the slave broker instance it result in a NullPointer exception being thrown after slave broker cannot be shutdown fully.

      2015-10-19 20:12:14,626 | INFO  | l Console Thread | fileinstall                      | ?                                   ? | 7 - org.apache.felix.fileinstall - 3.4.2 | Updating configuration from io.fabric8.mq.fabric.server-broker.cfg
      2015-10-19 20:19:16,723 | ERROR | 9d-51ba453555cf) | ActiveMQServiceFactory           | ceFactory$ClusteredConfiguration  624 | 184 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-153 | Unable to shutdown ActiveMQ in the allotted 60 seconds.
      2015-10-19 20:21:08,756 | INFO  | 9d-51ba453555cf) | ActiveMQServiceFactory           | mq.fabric.ActiveMQServiceFactory  101 | 184 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-153 | Standalone broker amq is starting.
      2015-10-19 20:21:08,776 | INFO  | 9d-51ba453555cf) | ActiveMQServiceFactory           | mq.fabric.ActiveMQServiceFactory  101 | 184 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-153 | Broker amq is being started.
      2015-10-19 21:22:23,446 | INFO  | pool-15-thread-1 | ActiveMQServiceFactory           | mq.fabric.ActiveMQServiceFactory   95 | 184 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-153 | booting up a broker from: file:etc/activemq.xml
      2015-10-19 21:22:23,558 | INFO  | pool-15-thread-1 | ActiveMQServiceFactory$1         | pport.AbstractApplicationContext  512 | 156 - org.apache.servicemix.bundles.spring-context - 3.2.12.RELEASE_2 | Refreshing io.fabric8.mq.fabric.ActiveMQServiceFactory$1@7d8b97ec: startup date [Mon Oct 19 21:22:23 CEST 2015]; root of context hierarchy
      2015-10-19 21:22:23,565 | INFO  | pool-15-thread-1 | XBeanXmlBeanDefinitionReader     | tory.xml.XmlBeanDefinitionReader  316 | 154 - org.apache.servicemix.bundles.spring-beans - 3.2.12.RELEASE_2 | Loading XML bean definitions from URL [file:etc/activemq.xml]
      2015-10-19 21:22:24,369 | INFO  | pool-15-thread-1 | DefaultListableBeanFactory       | pport.DefaultListableBeanFactory  603 | 154 - org.apache.servicemix.bundles.spring-beans - 3.2.12.RELEASE_2 | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6e2c42c7: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0]; root of factory hierarchy
      2015-10-19 21:22:24,523 | INFO  | pool-15-thread-1 | PListStoreImpl                   | tore.kahadb.plist.PListStoreImpl  331 | 171 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620153 | PListStore:[/apps/fusebin/A-MQ62_P2/jboss-a-mq-pre-patch-6.2.0.redhat-143-p1_p2/data/amq/amq/tmp_storage] started
      2015-10-19 21:22:24,577 | ERROR | pool-15-thread-1 | BrokerService                    | he.activemq.broker.BrokerService  609 | 171 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620153 | Failed to start Apache ActiveMQ ([amq, null], javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=amq)
      2015-10-19 21:22:24,579 | INFO  | pool-15-thread-1 | BrokerService                    | he.activemq.broker.BrokerService  770 | 171 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620153 | Apache ActiveMQ 5.11.0.redhat-620153 (amq, null) is shutting down
      ....
      2015-10-19 21:22:24,590 | ERROR | pool-15-thread-1 | SharedFileLocker                 | che.activemq.util.ServiceStopper   96 | 171 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-620153 | Could not stop service: org.apache.activemq.store.SharedFileLocker@5a57a58c. Reason: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.activemq.store.SharedFileLocker.doStop(SharedFileLocker.java:102)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.broker.LockableServiceSupport.postStop(LockableServiceSupport.java:114)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:75)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:804)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:612)[171:org.apache.activemq.activemq-osgi:5.11.0.redhat-620153]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.doStart(ActiveMQServiceFactory.java:506)[184:io.fabric8.mq.mq-fabric:1.2.0.redhat-153]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.access$400(ActiveMQServiceFactory.java:317)[184:io.fabric8.mq.mq-fabric:1.2.0.redhat-153]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$1.run(ActiveMQServiceFactory.java:449)[184:io.fabric8.mq.mq-fabric:1.2.0.redhat-153]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_75]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_75]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_75]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_75]
      

              gtully@redhat.com Gary Tully
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: