ERROR [UDP] failed sending message to null (87 bytes)
java.lang.Exception: dest=/224.0.0.1:45688 (90 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:353)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:294)
at org.jgroups.protocols.TP.doSend(TP.java:1478)
at org.jgroups.protocols.TP.send(TP.java:1468)
at org.jgroups.protocols.TP.down(TP.java:1189)
at org.jgroups.protocols.TP$ProtocolAdapter.down(TP.java:2308)
at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:275)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:256)
at org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:406)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:453)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:329)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:162)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:110)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:193)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:217)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
at java.lang.Thread.run(Thread.java:736)
Caused by:
java.io.IOException: The socket name is not available on this system.
at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:115)
at java.net.DatagramSocket.send(DatagramSocket.java:621)
at org.jgroups.protocols.UDP._send(UDP.java:344)
... 17 more
java启动时增加:
-Djava.net.preferIPv4Stack=true
就可以解决。