[
https://issues.jboss.org/browse/WFLY-5453?page=com.atlassian.jira.plugin....
]
Jeff Mesnil commented on WFLY-5453:
-----------------------------------
The NPE is on the replicaPolicy's replicatedPolicy.
The issue looks to be on the creation of the replicaPolicy that is using the no-op ctor
in org.apache.activemq.artemis.core.config.ConfigurationUtils#getHAPolicy when creating a
COLOCATED policy with backup.
If we explicitly create a backup configuration, the NPE no longer occurs:
{noformat}
<replication-colocated backup-port-offset="50"
request-backup="true">
<slave/>
</replication-colocated>
{noformat}
Note that in this case, the backup configuration is made only of default values.
NPE during backup activation in collocated HA topology
------------------------------------------------------
Key: WFLY-5453
URL:
https://issues.jboss.org/browse/WFLY-5453
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 10.0.0.CR2
Reporter: Miroslav Novak
Assignee: Clebert Suconic
Priority: Blocker
Attachments: standalone-full-ha-1.xml, standalone-full-ha-2.xml
If there are 2 EAP 7.0.0.DR11(Artemis 1.1.0) in collocated HA topology with replicated
journal then backup does not activate after one server is killed. There is NPE in log of
2nd EAP server:
{code}
10:13:12,231 ERROR [org.apache.activemq.artemis.core.server] (AMQ119000: Activation for
server ActiveMQServerImpl::serverUUID=null) AMQ224000: Failure in initialisation:
java.lang.NullPointerException
at
org.apache.activemq.artemis.core.server.impl.SharedNothingBackupActivation.run(SharedNothingBackupActivation.java:235)
at java.lang.Thread.run(Thread.java:745)
10:13:12,235 ERROR [stderr] (AMQ119000: Activation for server
ActiveMQServerImpl::serverUUID=null) java.lang.NullPointerException
10:13:12,235 ERROR [stderr] (AMQ119000: Activation for server
ActiveMQServerImpl::serverUUID=null) at
org.apache.activemq.artemis.core.server.impl.SharedNothingBackupActivation.run(SharedNothingBackupActivation.java:235)
10:13:12,236 ERROR [stderr] (AMQ119000: Activation for server
ActiveMQServerImpl::serverUUID=null) at java.lang.Thread.run(Thread.java:745)
{code}
Attaching configuration of both of the servers.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)