java.lang.IllegalStateException: channel is closed when using JGroups
for HA replication
----------------------------------------------------------------------------------------
Key: WFLY-4964
URL:
https://issues.jboss.org/browse/WFLY-4964
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 10.0.0.Alpha5
Reporter: Ondřej Kalman
Assignee: Jeff Mesnil
Fix For: 10.0.0.CR1
I'm getting this exception when I try to use <replication-master> and JGroups
for cluster discovery:
AMQ222116: unable to start broadcast group bg-group1: java.lang.IllegalStateException:
channel is closed
at org.jgroups.JChannel.checkClosed(JChannel.java:959)
[jgroups-3.6.3.Final.jar:3.6.3.Final]
at org.jgroups.JChannel._preConnect(JChannel.java:548)
[jgroups-3.6.3.Final.jar:3.6.3.Final]
at org.jgroups.JChannel.connect(JChannel.java:288) [jgroups-3.6.3.Final.jar:3.6.3.Final]
at org.jgroups.JChannel.connect(JChannel.java:279) [jgroups-3.6.3.Final.jar:3.6.3.Final]
at
org.apache.activemq.artemis.api.core.JGroupsBroadcastEndpoint$JChannelWrapper.connect(JGroupsBroadcastEndpoint.java:211)
[artemis-core-client-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.api.core.JGroupsBroadcastEndpoint.internalOpen(JGroupsBroadcastEndpoint.java:115)
[artemis-core-client-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.api.core.JGroupsBroadcastEndpoint.openBroadcaster(JGroupsBroadcastEndpoint.java:101)
[artemis-core-client-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.core.server.cluster.impl.BroadcastGroupImpl.start(BroadcastGroupImpl.java:105)
[artemis-server-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.core.server.cluster.ClusterManager.start(ClusterManager.java:288)
[artemis-server-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1904)
[artemis-server-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.core.server.impl.SharedNothingLiveActivation.run(SharedNothingLiveActivation.java:104)
[artemis-server-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:416)
[artemis-server-1.0.0.jar:1.0.0]
at
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:414)
[artemis-jms-server-1.0.0.jar:1.0.0]
at org.wildfly.extension.messaging.activemq.jms.JMSService.doStart(JMSService.java:173)
[wildfly-messaging-activemq-10.0.0.Alpha4-redhat-1.jar:10.0.0.Alpha4-redhat-1]
at org.wildfly.extension.messaging.activemq.jms.JMSService.access$000(JMSService.java:60)
[wildfly-messaging-activemq-10.0.0.Alpha4-redhat-1.jar:10.0.0.Alpha4-redhat-1]
at org.wildfly.extension.messaging.activemq.jms.JMSService$1.run(JMSService.java:94)
[wildfly-messaging-activemq-10.0.0.Alpha4-redhat-1.jar:10.0.0.Alpha4-redhat-1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[rt.jar:1.8.0_05]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_05]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_05]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
[jboss-threads-2.2.0.Final.jar:2.2.0.Final]
This issue seems to be the same as:
https://issues.apache.org/jira/browse/ARTEMIS-103