Skip to content

Commit

Permalink
Update warning message for multicast binding (JGRP-956)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmatowicz committed Sep 15, 2009
1 parent f79db8d commit 59c52c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/org/jgroups/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* Collection of various utility routines that can not be assigned to other classes.
* @author Bela Ban
* @version $Id: Util.java,v 1.105.2.6 2009/05/18 16:13:42 galderz Exp $
* @version $Id: Util.java,v 1.105.2.7 2009/09/15 19:15:56 rachmatowicz Exp $
*/
public class Util {
private static final ByteArrayOutputStream out_stream=new ByteArrayOutputStream(512);
Expand Down Expand Up @@ -1957,7 +1957,8 @@ public static MulticastSocket createMulticastSocket(InetAddress mcast_addr, int
StringBuffer sb=new StringBuffer();
String type=mcast_addr != null ? mcast_addr instanceof Inet4Address? "IPv4" : "IPv6" : "n/a";
sb.append("could not bind to " + mcast_addr + " (" + type + " address)");
sb.append("; make sure your mcast_addr is of the same type as the IP stack (IPv4 or IPv6).");
sb.append("; make sure your mcast_addr is of the same type as the preferred IP stack (IPv4 or IPv6)");
sb.append(" by checking the value of the system properties java.net.preferIPv4Stack and java.net.preferIPv6Addresses.");
sb.append("\nWill ignore mcast_addr, but this may lead to cross talking " +
"(see http://www.jboss.com/wiki/Edit.jsp?page=CrossTalking for details). ");
sb.append("\nException was: " + ex);
Expand Down

0 comments on commit 59c52c1

Please sign in to comment.