jgroups

sunchun122 发布于 2010/11/30 15:07
阅读 794
收藏 1

急,各位朋友,帮帮忙了,我用jgroups实现集群的时候,启动就报这个错,是什么原因呀

2010-11-30 15:01:15 org.jgroups.protocols.TP handleIncomingPacket
严重: failed unmarshalling message
java.net.UnknownHostException: addr is of illegal length
        at java.net.InetAddress.getByAddress(InetAddress.java:935)
        at java.net.InetAddress.getByAddress(InetAddress.java:1311)
        at org.jgroups.stack.IpAddress.readFrom(IpAddress.java:261)
        at org.jgroups.util.Util.readAddress(Util.java:571)
        at org.jgroups.protocols.TP.bufferToList(TP.java:1020)
        at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:826)
        at org.jgroups.protocols.TP.access$400(TP.java:47)
        at org.jgroups.protocols.TP$IncomingPacketHandler.run(TP.java:1295)
        at java.lang.Thread.run(Thread.java:619)
2010-11-30 15:01:17 org.jgroups.protocols.TP handleIncomingPacket

加载中
0
ddatsh
ddatsh

在你之前的帖里回过了 你看看是不是那问题

0
s
sunchun122

哦,好的,谢谢了

0
s
sunchun122

不是这个原因,我是做ehcache集群时,excache.xml文件里配置<cacheManagerPeerProviderFactory
  class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"
     properties="connect=UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;
     mcast_send_buf_size=150000;mcast_recv_buf_size=80000):
     PING(timeout=2000;num_initial_members=6):
     MERGE2(min_interval=5000;max_interval=10000):
     FD_SOCK:VERIFY_SUSPECT(timeout=1500):
     pbcast.NAKACK(gc_lag=10;retransmit_timeout=3000):
     UNICAST(timeout=5000):
     pbcast.STABLE(desired_avg_gossip=20000):
     FRAG:
     pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;
     shun=false;print_local_addr=true)"
   propertySeparator="::"
     />

像这样配置的时候,服务器后台报出来这个错误

0
ddatsh
ddatsh
没玩过,找了下 有人说

Someone is sending UDP packets to the multicast address you are listening on. Could be another cluster (with a different version of JGroups), or another multicast application

估计我以后玩这个的时候也会很郁闷的


等高手来解答了
0
s
sunchun122

  看不明白啥意思耶,是因为jgroups版本不兼容的问题吗

返回顶部
顶部