Jeff Mesnil created ACTIVEMQ6-102:
-------------------------------------

             Summary: NPE during shared store slave activation
                 Key: ACTIVEMQ6-102
                 URL: https://issues.apache.org/jira/browse/ACTIVEMQ6-102
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: Jeff Mesnil


Use case:

* start a shared-store-master server with failover-on-server-shutdown=true
* start a shared-store-slave server with scale-down enabled=false 
(scaleDownPolicy is not null though)
* stop the master server, a NPE occurs during the slave activation:

{noformat}
13:34:01,561 ERROR [org.apache.activemq.artemis.core.server] (AMQ119000: 
Activation for server 
ActiveMQServerImpl::serverUUID=44846429-f7d1-11e4-a3b3-f15b1ddcb38d) AMQ224000: 
Failure in initialisation: java.lang.NullPointerException
        at 
org.apache.activemq.artemis.core.server.impl.BackupRecoveryJournalLoader.postLoad(BackupRecoveryJournalLoader.java:93)
        at 
org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:1947)
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:1977)
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1840)
        at 
org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:88)
        at java.lang.Thread.run(Thread.java:745)
{noformat}

The NPE is caused by the slave's parentServer which is null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to