[ 
https://issues.apache.org/jira/browse/ARTEMIS-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17526129#comment-17526129
 ] 

ASF subversion and git services commented on ARTEMIS-3755:
----------------------------------------------------------

Commit 650952ba6737c828948bb5fb979396a8ce33118f in activemq-artemis's branch 
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=650952ba67 ]

ARTEMIS-3755 mitigate NPE related to fail-back


> Mitigate NPE related to fail-back
> ---------------------------------
>
>                 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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 {{cluster-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.7#820007)

Reply via email to