You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2022/04/01 18:15:00 UTC
[jira] [Updated] (ARTEMIS-3755) Mitigate NPE on failback attempt
[ https://issues.apache.org/jira/browse/ARTEMIS-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram updated ARTEMIS-3755:
------------------------------------
Description:
When configuring HA _without_ a {{cluster-connection}} this NPE is thrown on the backup when the it becomes live:
{noformat}
INFO [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live
ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.NullPointerException
at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation$FailbackChecker.<init>(SharedStoreBackupActivation.java:256)
at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.startFailbackChecker(SharedStoreBackupActivation.java:248)
at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:138)
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$ActivationThread.run(ActiveMQServerImpl.java:4271){noformat}
HA without a {{clustering-connection}} is an invalid configuration, but it still shouldn't thrown an NPE. It should log a WARN instead.
> Mitigate NPE on failback attempt
> --------------------------------
>
> Key: ARTEMIS-3755
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3755
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
>
> When configuring HA _without_ a {{cluster-connection}} this NPE is thrown on the backup when the it becomes live:
> {noformat}
> INFO [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live
> ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.NullPointerException
> at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation$FailbackChecker.<init>(SharedStoreBackupActivation.java:256)
> at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.startFailbackChecker(SharedStoreBackupActivation.java:248)
> at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:138)
> at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$ActivationThread.run(ActiveMQServerImpl.java:4271){noformat}
> HA without a {{clustering-connection}} is an invalid configuration, but it still shouldn't thrown an NPE. It should log a WARN instead.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)