我使用的是使用JGroups的Infinispan
当我在Windows平台上运行我的代码时,它运行正常。
但是当在Linux上运行时,我得到以下异常:
发送发现请求失败 at java.net.PlainDatagramSocketImpl.send(Native Method)[:1.7.0_17] at java.net.DatagramSocket.send(DatagramSocket.java:676)[:1.7.0_17] 在org.jgroups.protocols.MPING.sendMcastDiscoveryRequest(MPING.java:300)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.protocols.Discovery.sendDiscoveryRequest(Discovery.java:259)[143:xxxx:2.0.0.SNAPSHOT] org.jgroups.protocols.Discovery.sendDiscoveryRequest(Discovery.java:259)[143:xxxx:2.0.0.SNAPSHOT]在org.jgroups.protocols.Discovery.findMembers(Discovery.java:216)[143:xxxx: 2.0.0.SNAPSHOT] 在org.jgroups.protocols.Discovery.findAllViews(Discovery.java:203)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.protocols.Discovery.down(Discovery.java:527)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.protocols.MERGE2 $ FindSubgroupsTask.findAllViews(MERGE2.java:326)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.protocols.MERGE2 $ FindSubgroupsTask._findAndNotify(MERGE2.java:261)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.protocols.MERGE2 $ FindSubgroupsTask.findAndNotify(MERGE2.java:249)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.protocols.MERGE2 $ FindSubkgroupsTask $ 1.run(MERGE2.java:226)[143:xxxx:2.0.0.SNAPSHOT] at org.jgroups.util.TimeScheduler2 $ RecurringTask.run(TimeScheduler2.java:603)[143:xxxx:2.0.0.SNAPSHOT] at org.jgroups.util.TimeScheduler2 $ MyTask.run(TimeScheduler2.java:535)[143:xxxx:2.0.0.SNAPSHOT] at org.jgroups.util.TimeScheduler2 $ Entry.execute(TimeScheduler2.java:440)[143:xxxx:2.0.0.SNAPSHOT] 在org.jgroups.util.TimeScheduler2 $ 1.run(TimeScheduler2.java:297)[143:xxxxx:2.0.0.SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_17] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_17]
我怎样才能实现这个目标