今天发现一台服务器一直无法加入广播组中,而且在gossipRouter 中报如下错:
2011-05-17 14:32:56 [WARN] Exception in ConnectionHandler thread
java.lang.RuntimeException: class for magic number -1 not found
at org.jgroups.util.Util.readOtherAddress(Util.java:908)
at org.jgroups.util.Util.readAddress(Util.java:879)
at org.jgroups.stack.GossipData.readFrom(GossipData.java:122)
at org.jgroups.stack.GossipRouter$ConnectionHandler.readLoop(GossipRouter.java:608)
at org.jgroups.stack.GossipRouter$ConnectionHandler.run(GossipRouter.java:589)
at java.lang.Thread.run(Thread.java:619)
分析了半天才发现原因:原来是系统用到的一个jar包打进了很多第三方的包,删除掉就正常了