1 Reply Latest reply on Mar 6, 2006 7:05 AM by Bela Ban

    Get error  java.io.OptionalDataException in clustered enviro

    Eric Piper Newbie

      Hi,

      I get this error when using jboss cache 1.2.4 SP2
      and Jgroups 2.2.8

      org.jboss.util.NestedRuntimeException: java.io.OptionalDataException; - nested throwable: (java.lang.IllegalArgumentException: java.io.OptionalDataException)

      at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4129)
      at org.jboss.cache.TreeCache.put(TreeCache.java:2868)
      at org.jboss.cache.TreeCache.put(TreeCache.java:2809)
      ...

      Caused by: java.lang.IllegalArgumentException: java.io.OptionalDataException
      at org.jgroups.Message.getObject(Message.java:239)
      at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:219)
      at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:618)
      at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:515)
      at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:734)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:566)
      at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:703)
      at java.lang.Thread.run(Thread.java:534)



      My jgroups configuration looks like this:

      UDP(ip_mcast=true;mcast_addr=xxx.xxx.xxx;mcast_port=45570;ip_ttl=32;loopback=false;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=2;timeout=1500;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;max_tries=3;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;retransmit_timeout=600,1200,2400,4800;up_thread=false):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):UNICAST(down_thread=false;timeout=600,1200,2400):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)