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 :
Adrien.