[
https://issues.jboss.org/browse/JGRP-1885?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-1885:
--------------------------------
Example:
{noformat}
java.net.BindException: [UDP] /0.0.0.0 is not a valid address on any local network
interface
at org.jgroups.util.Util.checkIfValidAddress(Util.java:3458)
at org.jgroups.stack.Configurator.ensureValidBindAddresses(Configurator.java:902)
at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:118)
at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:57)
at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:477)
at org.jgroups.JChannel.init(JChannel.java:849)
at org.jgroups.JChannel.<init>(JChannel.java:159)
at org.jgroups.JChannel.<init>(JChannel.java:139)
at org.jgroups.demos.Draw.<init>(Draw.java:57)
at org.jgroups.demos.Draw.main(Draw.java:161)
{noformat}
bind_addr of 0.0.0.0 should throw an exception
----------------------------------------------
Key: JGRP-1885
URL:
https://issues.jboss.org/browse/JGRP-1885
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Minor
Fix For: 3.5.1, 3.6
Setting {{bind_addr}} to {{0.0.0.0}} breaks communication as there's no way to route
a message to {{0.0.0.0:46677}}, beyond the local host.
SOLUTION: throw an exception when bind_addr is set to the wildcard address. This can be
done in the code which checks {{@LocalAddress}}.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)