Hazelcast collides with JGroups

579 views
Skip to first unread message

Ralf Edmund

unread,
Feb 23, 2010, 10:16:26 AM2/23/10
to Hazelcast
I tried to switch from a JGroups based communication and distribution
mechanism to Hazelcast. To gain some experience with the productive
use of Hazelcast, i tried to switch only a limited part of my
application to a distributed hashmap implementation.

Even if i do not use Hazelcast - just creating the hashmap - i get
Exceptions from JGroups:

23.02.2010 16:05:31 com.hazelcast.impl.Node <init>
INFO: Hazelcast 1.8.1-SNAPSHOT (20100219) starting at
Address[172.31.0.42:5701]
23.02.2010 16:05:31 com.hazelcast.impl.Node <init>
INFO: Copyright (C) 2008-2010 Hazelcast.com
2010-02-23 16:05:32,571 ERROR org.jgroups.protocols.UDP - failed
sending message to null (114 bytes)
java.lang.Exception: dest=/224.0.0.19:45566 (117 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:337)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:287)
at org.jgroups.protocols.TP.doSend(TP.java:1186)
at org.jgroups.protocols.TP.send(TP.java:1176)
at org.jgroups.protocols.TP.down(TP.java:943)
at org.jgroups.protocols.Discovery.down(Discovery.java:321)
at org.jgroups.protocols.MERGE2.down(MERGE2.java:184)
at org.jgroups.protocols.FD_SOCK.down(FD_SOCK.java:406)
at org.jgroups.protocols.VERIFY_SUSPECT.down(VERIFY_SUSPECT.java:95)
at org.jgroups.protocols.pbcast.NAKACK.send(NAKACK.java:650)
at org.jgroups.protocols.pbcast.NAKACK.down(NAKACK.java:440)
at org.jgroups.protocols.UNICAST.down(UNICAST.java:440)
at org.jgroups.protocols.pbcast.STABLE$1.run(STABLE.java:643)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor
$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor
$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
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:637)
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.jgroups.protocols.UDP._send(UDP.java:328)
... 20 more
2010-02-23 16:05:34,150 ERROR org.jgroups.protocols.UDP - failed
sending message to null (50 bytes)
java.lang.Exception: dest=/224.0.0.19:45566 (53 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:337)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:287)
at org.jgroups.protocols.TP.doSend(TP.java:1186)
at org.jgroups.protocols.TP.send(TP.java:1176)
at org.jgroups.protocols.TP.down(TP.java:943)
at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:
218)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:212)
at org.jgroups.protocols.PingSender.run(PingSender.java:76)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.jgroups.protocols.UDP._send(UDP.java:328)
... 8 more
2010-02-23 16:05:35,154 ERROR org.jgroups.protocols.UDP - failed
sending message to null (50 bytes)
java.lang.Exception: dest=/224.0.0.19:45566 (53 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:337)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:287)
at org.jgroups.protocols.TP.doSend(TP.java:1186)
at org.jgroups.protocols.TP.send(TP.java:1176)
at org.jgroups.protocols.TP.down(TP.java:943)
at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:
218)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:212)
at org.jgroups.protocols.PingSender.run(PingSender.java:76)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.jgroups.protocols.UDP._send(UDP.java:328)
... 8 more
23.02.2010 16:05:36 com.hazelcast.impl.Node join
INFO:


Members [1] {
Member [172.31.0.42:5701] this
}

2010-02-23 16:05:36,530 INFO
org.springframework.security.intercept.AbstractSecurityInterceptor -
Validated configuration attributes
2010-02-23 16:05:36,757 INFO
com.bearingpoint.core.execute.ExecutionService - Starting execution
service thread pool with 1 threads.
DEBUG: JavaMail version 1.4.2
DEBUG: successfully loaded resource: /META-INF/
javamail.default.providers

23.02.2010 16:05:40 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
23.02.2010 16:05:40 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
23.02.2010 16:05:40 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/40 config=null
23.02.2010 16:05:40 org.apache.catalina.startup.Catalina start
INFO: Server startup in 25957 ms
2010-02-23 16:05:44,163 ERROR org.jgroups.protocols.UDP - failed
sending message to null (50 bytes)
java.lang.Exception: dest=/224.0.0.19:45566 (53 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:337)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:287)
at org.jgroups.protocols.TP.doSend(TP.java:1186)
at org.jgroups.protocols.TP.send(TP.java:1176)
at org.jgroups.protocols.TP.down(TP.java:943)
at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:
218)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:212)
at org.jgroups.protocols.PingSender.run(PingSender.java:76)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.jgroups.protocols.UDP._send(UDP.java:328)
... 8 more
2010-02-23 16:05:45,188 ERROR org.jgroups.protocols.UDP - failed
sending message to null (50 bytes)
java.lang.Exception: dest=/224.0.0.19:45566 (53 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:337)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:287)
at org.jgroups.protocols.TP.doSend(TP.java:1186)
at org.jgroups.protocols.TP.send(TP.java:1176)
at org.jgroups.protocols.TP.down(TP.java:943)
at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:
218)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:212)
at org.jgroups.protocols.PingSender.run(PingSender.java:76)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.jgroups.protocols.UDP._send(UDP.java:328)
... 8 more


The hazecast configurations does not make use of multicast
communication. Instead three IP-Member addresses are provided using an
<interfaces> elment.

What's the cause of this problem? How can i prevent those Exceptions?

Regards,
Ralf E. Stranzenbach

Ian Cass

unread,
Feb 23, 2010, 10:37:24 AM2/23/10
to Hazelcast

try adding

-Djava.net.preferIPv4Stack=true

and try again.

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.


NOTICE - This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message.

Ralf Edmund

unread,
Feb 24, 2010, 5:17:23 AM2/24/10
to Hazelcast
Thank you for your advice. The application now starts without issuing
those exceptions.
Reply all
Reply to author
Forward
0 new messages