Hazelcast multicast discovery - Unrecognized Windows Sockets error

1,200 views
Skip to first unread message

Jump

unread,
Jan 24, 2014, 10:35:35 AM1/24/14
to haze...@googlegroups.com

Hello,

We are using Hazelcast for cache and lock distribution.

We encounter some problems with the Hazelcast discovery service in some Windows environments. When Multicasting with the following configuration, on some computers, java seems not able to bind the socket port.

Configuration :

<multicast enabled="true">
     
<multicast-group>224.0.0.1</multicast-group>
     
<multicast-port>54328</multicast-port>
</multicast>

Stack trace :

Unrecognized Windows Sockets error: 0: Cannot bind java.net.SocketException: Unrecognized Windows Sockets error: 0: Cannot bind
at java
.net.TwoStacksPlainDatagramSocketImpl.bind0(Native Method)
at java
.net.TwoStacksPlainDatagramSocketImpl.bind0(Unknown Source)
at java
.net.AbstractPlainDatagramSocketImpl.bind(Unknown Source)
at java
.net.TwoStacksPlainDatagramSocketImpl.bind(Unknown Source)
at java
.net.DatagramSocket.bind(Unknown Source)
at com
.hazelcast.impl.Node.<init>(Node.java:192)
at com
.hazelcast.impl.FactoryImpl.<init>(FactoryImpl.java:386)
at com
.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:133)
at com
.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:125)
at com
.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:104)
at com
.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:507)
...

Furthermore, everything seems ok concerning this port (netstat ...). And it works if I change the configuration to port 54327 for example. I tryed to change jdk version, disable firewall, and a lot more thing. The Os version is Windows 8.1.

So, my questions are :

  • How can I fix this problem in an other way than changing the port.
  • Is there any way to diagnose this kind of error in order to prevent them from happening in production context ? Exemple : simulate multicast ...

Adrien.

roncali...@gmail.com

unread,
May 15, 2015, 10:50:02 AM5/15/15
to haze...@googlegroups.com
Hi!
This is of course an old post but I'm having the same issue. Did you fix this problem??
Best regards
Reply all
Reply to author
Forward
0 new messages