[jboss-jira] [JBoss JIRA] Closed: (JBAS-4181) If -b 0.0.0.0 is used, do not pass wildcard addresss through to JGroups

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Mar 6 12:58:22 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4181?page=all ]

Brian Stansberry closed JBAS-4181.
----------------------------------

    Resolution: Done

> If -b 0.0.0.0 is used, do not pass wildcard addresss through to JGroups
> -----------------------------------------------------------------------
>
>                 Key: JBAS-4181
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4181
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Clustering
>            Reporter: Brian Stansberry
>         Assigned To: Brian Stansberry
>             Fix For: JBossAS-5.0.0.Beta2, JBossAS-4.2.0.GA
>
>
> If JGroups tries to bind to 0.0.0.0 you get nasty effects like:
> 11:00:42,765 ERROR [UDP] failed sending message to 0.0.0.0:2902 (0 bytes)
> java.net.BindException: Cannot assign requested address: Datagram send failed
>         at java.net.PlainDatagramSocketImpl.send(Native Method)
>         at java.net.DatagramSocket.send(DatagramSocket.java:612)
>         at org.jgroups.protocols.UDP._send(UDP.java:338)
>         at org.jgroups.protocols.UDP.sendToSingleMember(UDP.java:299)
>         at org.jgroups.protocols.TP.doSend(TP.java:940)
>         at org.jgroups.protocols.TP.send(TP.java:926)
>         at org.jgroups.protocols.TP.down(TP.java:712)
>         at org.jgroups.stack.Protocol.receiveDownEvent(Protocol.java:517)
>         at org.jgroups.stack.Protocol.passDown(Protocol.java:551)
>         at org.jgroups.protocols.Discovery.up(Discovery.java:246)
>         at org.jgroups.stack.Protocol.receiveUpEvent(Protocol.java:488)
>         at org.jgroups.stack.Protocol.passUp(Protocol.java:538)
>         at org.jgroups.protocols.TP.handleIncomingMessage(TP.java:908)
>         at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:850)
>         at org.jgroups.protocols.TP.access$400(TP.java:45)
>         at org.jgroups.protocols.TP$IncomingPacketHandler.run(TP.java:1296)
>         at java.lang.Thread.run(Thread.java:595)
> 11:00:42,796 WARN  [NAKACK] 0.0.0.0:4627] discarded message from non-member 0.0.
> 0.0:2898, my view is [0.0.0.0:4627|0] [0.0.0.0:4627]
> Fix is in org.jboss.Main to pass the -b value through ServerConfigUtil.fixRemoteAddress(), which will return pick a non-wildcard address via InetAddress.getLocalHost().getHostName().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list