]
Bela Ban commented on JGRP-1465:
--------------------------------
This happens when we get a discovery request (received by the MPING multicast socket)
before the channel is fully initialized. This is possible because MPING.start() (which
creates and listens on the multicast socket) is called before TCP.start (which creates the
ConnectionMap).
I fixed this by checking for a non-null connection map before sending a message.
[org.jgroups.protocols.TCP] failed sending message to
NJ-WKST-2CF6D2X-62641 (91 bytes): java.lang.NullPointerException, cause: null
-----------------------------------------------------------------------------------------------------------------------------------
Key: JGRP-1465
URL:
https://issues.jboss.org/browse/JGRP-1465
Project: JGroups
Issue Type: Bug
Affects Versions: 3.0.10
Environment: TCP + MPING
Reporter: freeliuade freeliuade
Assignee: Bela Ban
Priority: Minor
Fix For: 3.0.11, 3.1
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: