Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-162

Can't create colocated HA topology with JGroups discovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • None
    • None

    Description

      Hi, I tried to start two Artemis nodes from our application server in colocated topology with JGroups as discovery method, but i'm not able to do it. After both nodes are up, this exception starts spamming in logs:

      java.io.NotSerializableException: org.jgroups.JChannel
      10:56:50,187 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
      10:56:50,188 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      10:56:50,188 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      10:56:50,188 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      10:56:50,188 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      10:56:50,188 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      10:56:50,189 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      10:56:50,189 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      10:56:50,189 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      10:56:50,189 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
      10:56:50,189 ERROR [stderr] (default I/O-5) at java.util.ArrayList.writeObject(ArrayList.java:747)
      10:56:50,189 ERROR [stderr] (default I/O-5) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      10:56:50,190 ERROR [stderr] (default I/O-5) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      10:56:50,190 ERROR [stderr] (default I/O-5) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      10:56:50,190 ERROR [stderr] (default I/O-5) at java.lang.reflect.Method.invoke(Method.java:483)
      10:56:50,190 ERROR [stderr] (default I/O-5) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
      10:56:50,190 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
      10:56:50,190 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      10:56:50,191 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      10:56:50,191 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      10:56:50,191 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      10:56:50,191 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      10:56:50,191 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      10:56:50,192 ERROR [stderr] (default I/O-5) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
      10:56:50,192 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.config.impl.ConfigurationImpl.copy(ConfigurationImpl.java:1528)
      10:56:50,192 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.server.cluster.ha.ColocatedHAManager.activateReplicatedBackup(ColocatedHAManager.java:190)
      10:56:50,192 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.server.cluster.ha.ColocatedHAManager.activateBackup(ColocatedHAManager.java:104)
      10:56:50,192 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.server.impl.ColocatedActivation$1.handlePacket(ColocatedActivation.java:141)
      10:56:50,193 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.server.cluster.ClusterController$ClusterControllerChannelHandler.handlePacket(ClusterController.java:424)
      10:56:50,193 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:652)
      10:56:50,193 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:402)
      10:56:50,193 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:379)
      10:56:50,193 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:694)
      10:56:50,193 ERROR [stderr] (default I/O-5) at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73)
      10:56:50,194 ERROR [stderr] (default I/O-5) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
      10:56:50,194 ERROR [stderr] (default I/O-5) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
      10:56:50,194 ERROR [stderr] (default I/O-5) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242)
      10:56:50,194 ERROR [stderr] (default I/O-5) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
      10:56:50,194 ERROR [stderr] (default I/O-5) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
      10:56:50,194 ERROR [stderr] (default I/O-5) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847)
      10:56:50,195 ERROR [stderr] (default I/O-5) at org.xnio.netty.transport.AbstractXnioSocketChannel$ReadListener.handleEvent(AbstractXnioSocketChannel.java:435)
      10:56:50,195 ERROR [stderr] (default I/O-5) at org.xnio.netty.transport.AbstractXnioSocketChannel$ReadListener.handleEvent(AbstractXnioSocketChannel.java:371)
      10:56:50,195 ERROR [stderr] (default I/O-5) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      10:56:50,195 ERROR [stderr] (default I/O-5) at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
      10:56:50,195 ERROR [stderr] (default I/O-5) at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
      10:56:50,196 ERROR [stderr] (default I/O-5) at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
      

      Attachments

        Activity

          People

            clebertsuconic Clebert Suconic
            jmesnil Jeff Mesnil
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: