4 Replies Latest reply on Jan 27, 2011 1:53 PM by Clebert Suconic

    Failed to receive datagram: java.lang.IndexOutOfBoundsException when starting a JBoss AS 6 cluster

    k1100t Newbie

      I'm trying to cluster two JBoss AS 6 nodes on the same machine. I coppied the all prifile twice and named them node1 and node2. I start the nodes with:

       

      ./run.sh -c node1 -g boba -Djboss.messaging.ServerPeerID=1000
      

       

      and:

       

      ./run.sh -c node2 -g boba -Djboss.service.binding.set=ports-01 -Djboss.messaging.ServerPeerID=1001
      

       

      When I start the second node I get the following exception on both servers:

       

      2011-01-27 15:06:17,686 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      2011-01-27 15:06:17,688 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      2011-01-27 15:06:17,690 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.Final "Neo"] Started in 18s:317ms
      2011-01-27 15:07:54,199 INFO  [org.jboss.ha.framework.server.ClusterPartition.lifecycle.boba] (Incoming-5,null) New cluster view for partition boba (id: 1, delta: 1, merge: false) : [127.0.0.1:1099, 127.0.0.1:1199]
      2011-01-27 15:07:54,201 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-5,null) Received new cluster view: [127.0.0.1:1099|1] [127.0.0.1:1099, 127.0.0.1:1199]
      2011-01-27 15:07:54,201 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.boba] (AsynchViewChangeHandler Thread) I am (127.0.0.1:1099) received membershipChanged event:
      2011-01-27 15:07:54,202 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.boba] (AsynchViewChangeHandler Thread) Dead members: 0 ([])
      2011-01-27 15:07:54,202 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.boba] (AsynchViewChangeHandler Thread) New Members : 1 ([127.0.0.1:1199])
      2011-01-27 15:07:54,202 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.boba] (AsynchViewChangeHandler Thread) All Members : 2 ([127.0.0.1:1099, 127.0.0.1:1199])
      2011-01-27 15:07:58,293 INFO  [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-2 (group:HornetQ-server-threads975401408-1508330094)) Connecting bridge sf.my-cluster.36a997eb-2a27-11e0-be41-001517d83638 to its destination
      2011-01-27 15:07:58,407 INFO  [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-2 (group:HornetQ-server-threads975401408-1508330094)) Bridge sf.my-cluster.36a997eb-2a27-11e0-be41-001517d83638 is connected to its destination
      2011-01-27 15:09:31,095 ERROR [org.hornetq.core.cluster.impl.DiscoveryGroupImpl] (hornetq-discovery-group-thread-dg-group1) Failed to receive datagram: java.lang.IndexOutOfBoundsException
              at org.jboss.netty.buffer.AbstractChannelBuffer.checkReadableBytes(AbstractChannelBuffer.java:657) [:6.0.0.Final]
              at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:337) [:6.0.0.Final]
              at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:343) [:6.0.0.Final]
              at org.hornetq.core.buffers.impl.ChannelBufferWrapper.readSimpleStringInternal(ChannelBufferWrapper.java:84) [:6.0.0.Final]
              at org.hornetq.core.buffers.impl.ChannelBufferWrapper.readStringInternal(ChannelBufferWrapper.java:112) [:6.0.0.Final]
              at org.hornetq.core.buffers.impl.ChannelBufferWrapper.readString(ChannelBufferWrapper.java:90) [:6.0.0.Final]
              at org.hornetq.core.cluster.impl.DiscoveryGroupImpl.run(DiscoveryGroupImpl.java:306) [:6.0.0.Final]
              at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]
      
      

       

      Both servers appear to be running fine, at least I can access the admin console app, but I'd rather not have an exception thrown. I have no idea why it's being thrown or how to stop it, can anyone tell me why it's happening...?

       

      Cheers,

       

      --

      Bob.