using TCP + MPING, on connect a channel, throws following error:
------------
2012-05-16 12:20:16,604 ERROR [org.jgroups.protocols.TCP] failed sending message to NJ-WKST-2CF6D2X-62641 (91 bytes): java.lang.NullPointerException, cause: null
------------
using debug to get the exception detail as below:
2012-05-16 16:05:39,690 ERROR [STDERR] java.lang.NullPointerException
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.TCP.send(TCP.java:56)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.BasicTCP.sendUnicast(BasicTCP.java:95)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.TP.sendToSingleMember(TP.java:1214)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.TP.doSend(TP.java:1198)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.TP.send(TP.java:1184)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.TP.down(TP.java:1041)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.Discovery.sendDiscoveryResponse(Discovery.java:512)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.Discovery.up(Discovery.java:347)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.PING.up(PING.java:69)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.MPING.up(MPING.java:176)
2012-05-16 16:05:39,690 ERROR [STDERR] at org.jgroups.protocols.MPING.run(MPING.java:327)
2012-05-16 16:05:39,690 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
and it should caused by MPING received a message, but the jchannel initialize doesn't done at this time. (TCPConnectionMap(ct) doesn't initialized in TCP).
I guess this error should be harmless, but I think MPING should receive message after jchannel initialze done.