Stopping JGroups channel and concurrently receiving a message can result in an error like this:
2012-01-11 14:41:13,633 4377 ERROR [org.jgroups.protocols.pbcast.NAKACK] (Incoming-2,infinispan-hibernate-cluster,dhcp-144-239-60991:) couldn't deliver message [dst: <null>, src: dhcp-144-239-44597 (3 headers), size=0 bytes] java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at java.util.ArrayList.addAll(ArrayList.java:475) at org.jgroups.protocols.FD_SOCK.down(FD_SOCK.java:327) at org.jgroups.protocols.FD.down(FD.java:283) at org.jgroups.protocols.VERIFY_SUSPECT.down(VERIFY_SUSPECT.java:77) at org.jgroups.protocols.pbcast.NAKACK.down(NAKACK.java:528) at org.jgroups.protocols.UNICAST.down(UNICAST.java:467) at org.jgroups.protocols.pbcast.STABLE.down(STABLE.java:307) at org.jgroups.protocols.pbcast.GMS.installView(GMS.java:624) at org.jgroups.protocols.pbcast.ParticipantGmsImpl.handleViewChange(ParticipantGmsImpl.java:152) at org.jgroups.protocols.pbcast.GMS.up(GMS.java:781) at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244) at org.jgroups.protocols.UNICAST.up(UNICAST.java:332) at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:733) at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:561) at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:140) at org.jgroups.protocols.FD.up(FD.java:273) at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:284) at org.jgroups.protocols.MERGE2.up(MERGE2.java:205) at org.jgroups.protocols.Discovery.up(Discovery.java:354) at org.jgroups.protocols.TP.passMessageUp(TP.java:1174) at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1709) at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1686) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) 2012-01-11 14:41:13,633 4377 ERROR [org.jgroups.protocols.FD_SOCK] (FD_SOCK pinger,infinispan-hibernate-cluster,dhcp-144-239-60991:) exception java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.fastRemove(ArrayList.java:441) at java.util.ArrayList.remove(ArrayList.java:424) at org.jgroups.protocols.FD_SOCK.run(FD_SOCK.java:418) at java.lang.Thread.run(Thread.java:680)
A bigger stacktrace can be found in https://gist.github.com/1594726