DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40042>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40042

           Summary: When mcastBindAddress is set and disabling/enabling
                    interface on Win get infinite NoRouteToHostException
           Product: Tomcat 5
           Version: 5.5.16
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina:Cluster
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Hi,

  I'm doing some test for an HA solution with Tomcat and run into this problem.


 <Membership
                        
className="org.apache.catalina.cluster.mcast.McastService"
                        mcastAddr="228.0.0.6" mcastBindAddress="onyx.webos2.net"
                        mcastPort="45564"
                        mcastFrequency="500"
                        mcastDropTime="3000"/>

When mcastBindAddress is specified and the network card is disabled/Enabled I 
get 

ATTENTION: Unable to send mcast message.
java.net.BindException: Cannot assign requested address: Datagram send failed
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(Unknown Source)
        at
org.apache.catalina.cluster.mcast.McastServiceImpl.send(McastServiceImpl.java:238)
        at
org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run(McastServiceImpl.java:274)
2006-07-13 20:29:00
org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run
ATTENTION: Unable to send mcast message.
java.net.NoRouteToHostException: No route to host: Datagram send failed
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(Unknown Source)
        at
org.apache.catalina.cluster.mcast.McastServiceImpl.send(McastServiceImpl.java:238)
        at
org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run(McastServiceImpl.java:274)


The problem is that the NoRouteToHost loop forever.

If I omit the mcastBindAddress param I will get a NoRouteToHostException and
Tomcat will continue correctly when the interface is up again.

Best Regards
David

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to