jboss as7 o.h.c.s.c.i.BroadcastGroupImpl Network is unreachable

Question:

[Server:server-one] 22:52:56,876 ERROR [org.hornetq.core.server.cluster.impl.BroadcastGroupImpl] (Thread-0 (HornetQ-scheduled-threads-1729268033)) Failed to broadcast connector configs: java.io.IOException: Network is unreachable
[Server:server-one]     at java.net.PlainDatagramSocketImpl.send(Native Method) [rt.jar:1.7.0_45]
[Server:server-one]     at java.net.DatagramSocket.send(DatagramSocket.java:676) [rt.jar:1.7.0_45]
[Server:server-one]     at org.hornetq.core.server.cluster.impl.BroadcastGroupImpl.broadcastConnectors(BroadcastGroupImpl.java:227) [hornetq-core-2.2.13.Final.jar:]
[Server:server-one]     at org.hornetq.core.server.cluster.impl.BroadcastGroupImpl.run(BroadcastGroupImpl.java:239) [hornetq-core-2.2.13.Final.jar:]
[Server:server-one]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_45]
[Server:server-one]     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [rt.jar:1.7.0_45]
[Server:server-one]     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [rt.jar:1.7.0_45]
[Server:server-one]     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [rt.jar:1.7.0_45]
[Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
[Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
[Server:server-one]     at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
[Server:server-one]

Answer:

the root error is java.io.IOException: Network is unreachable

Do you have a valid route to the UDP address used by HornetQ (default is 231.7.7.7:9876) on the loopback (which is the default interface)?

If no, can you add one and tell me if the error still occurs:

$ sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev lo

上一篇:15、Spark Streaming源码解读之No Receivers彻底思考


下一篇:Day30--Python--struct, socketserver