java – org.jgroups.protocols.UDP – 将消息发送到null失败

前端之家收集整理的这篇文章主要介绍了java – org.jgroups.protocols.UDP – 将消息发送到null失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

  1. [hannel,192.168.0.46:40014] 15:08:03,642 - ERROR - org.jgroups.protocols.UDP - Failed sending message to null (61 bytes)
  2. java.lang.Exception: dest=/225.1.2.46:30446 (64 bytes)
  3. at org.jgroups.protocols.UDP._send(UDP.java:333)
  4. at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:283)
  5. at org.jgroups.protocols.TP.doSend(TP.java:1327)
  6. at org.jgroups.protocols.TP.send(TP.java:1317)
  7. at org.jgroups.protocols.TP.down(TP.java:1038)
  8. at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:220)
  9. at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:214)
  10. at org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:385)
  11. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
  12. at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
  13. at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
  14. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
  15. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
  16. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
  17. at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
  18. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
  19. at java.lang.Thread.run(Thread.java:595)
  20. Caused by: java.io.InterruptedioException: operation interrupted
  21. at java.net.PlainDatagramSocketImpl.send(Native Method)
  22. at java.net.DatagramSocket.send(DatagramSocket.java:612)
  23. at org.jgroups.protocols.UDP._send(UDP.java:324)
  24. ... 16 more

这是在服务器上进行负载测试期间发生的.我应该担心吗?除了在日志中获取该消息之外,一切似乎都正常.

最佳答案
为响应matt b,“将消息发送到null失败”消息具有误导性.真正的问题是InterruptedioException.这意味着有人在正在发送UDP的线程上调用了interrupt().最有可能的是,中断是在JGroups中生成的. (除非你开始,然后停止了JGroups频道.)

查看堆栈跟踪,中断的I / O来自Discovery协议.它试图发现其他集群成员.因此,此异常中没有丢失您的消息.

我们必须知道更多才能真正理解这一点.

猜你在找的Java相关文章