[
https://issues.jboss.org/browse/JGRP-2391?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-2391:
--------------------------------
OK, so the reason this failed is a change introduced in 4.1.5: [1].
Torsten: I applied your patch and changed it slightly to check if we're running on
Windows and in that case use the MulticastSocket(port) constructor. This is now exactly
the same code as the code for constructing the multicast socket in UDP, which is something
I should have done anyway...
Running the testsuite now...
Thanks!
[1]
https://issues.jboss.org/browse/JGRP-2344
BindException on Windows
------------------------
Key: JGRP-2391
URL:
https://issues.jboss.org/browse/JGRP-2391
Project: JGroups
Issue Type: Bug
Affects Versions: 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6
Environment: Openjdk 13
Microsoft Windows 10
Reporter: Thorsten Marx
Assignee: Bela Ban
Priority: Major
Fix For: 4.1.7
Attachments: jgroups.patch
After updating to jgroups 4.1.6 i get the following BindException
{code}
java.net.BindException: Cannot assign requested address: Cannot bind
at java.base/java.net.TwoStacksPlainDatagramSocketImpl.bind0(Native Method)
at
java.base/java.net.TwoStacksPlainDatagramSocketImpl.bind0(TwoStacksPlainDatagramSocketImpl.java:114)
at
java.base/java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:117)
at
java.base/java.net.TwoStacksPlainDatagramSocketImpl.bind(TwoStacksPlainDatagramSocketImpl.java:98)
at java.base/java.net.DatagramSocket.bind(DatagramSocket.java:395)
at java.base/java.net.MulticastSocket.<init>(MulticastSocket.java:176)
at
org.jgroups.util.DefaultSocketFactory.createMulticastSocket(DefaultSocketFactory.java:92)
at org.jgroups.stack.DiagnosticsHandler.startUDP(DiagnosticsHandler.java:180)
at org.jgroups.stack.DiagnosticsHandler.start(DiagnosticsHandler.java:122)
at org.jgroups.protocols.TP.startDiagnostics(TP.java:1031)
at org.jgroups.protocols.TP.start(TP.java:938)
at org.jgroups.protocols.UDP.start(UDP.java:295)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:888)
at org.jgroups.JChannel.startStack(JChannel.java:980)
at org.jgroups.JChannel._preConnect(JChannel.java:844)
at org.jgroups.JChannel.connect(JChannel.java:349)
at org.jgroups.JChannel.connect(JChannel.java:343)
at com.thorstenmarx.webtools.cluster.JGroupsTest.simple(JGroupsTest.java:43)
{code}
It seems to be caused by
https://stackoverflow.com/questions/14086740/how-to-create-a-new-multicas...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)