1 Reply Latest reply on Nov 15, 2010 8:22 AM by manik

    'stateRetrieval' errors out in replication mode

    gupabhi

      Hi,

         I have 2 nodes run in replication mode.

      Node A has 100 entries. Then I start node B with <stateRetrieval fetchInMemoryState="true" timeout="20000" /> . It immediately errors out on startup with the exception below.

       

      Config for A:

      <clustering mode="replication"> 
               <sync/>
      </clustering>

       

      Config for B:

           <clustering mode="replication">
                  <sync />
                  <stateRetrieval fetchInMemoryState="true" timeout="20000" />
           </clustering>

       

      I'm on infinispan-4.1.0.FINAL

       

      Can someone help me with this?

       

      Thanks,

      Abhi

       

       

       

       

       

      2010-11-12 13:50:16,317 INFO [main] o.i.r.r.RpcManagerImpl [AbstractLogImpl.java : 20] Trying to fetch state from gupabhixp1-52189
      2010-11-12 13:50:16,364 ERROR [Incoming-2,demoCluster,gupabhixp1-31809] o.i.r.t.j.JGroupsTransport [JGroupsTransport.java : 585] Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: java.lang.ClassCastException: java.lang.Byte cannot be cast to java.util.Set
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyInMemoryState(StateTransferManagerImpl.java:346) ~[infinispan-core.jar:4.1.0.FINAL]
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:316) ~[infinispan-core.jar:4.1.0.FINAL]
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:84) ~[infinispan-core.jar:4.1.0.FINAL]
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:581) ~[infinispan-core.jar:4.1.0.FINAL]
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:712) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:772) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.JChannel.up(JChannel.java:1410) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:887) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:483) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:525) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:464) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:225) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.FC.up(FC.java:474) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:888) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:614) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:294) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:707) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:132) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.FD.up(FD.java:266) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:270) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.MERGE2.up(MERGE2.java:210) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.Discovery.up(Discovery.java:281) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.TP.passMessageUp(TP.java:1009) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.TP.access$100(TP.java:56) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1549) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1531) [jgroups-2.10.0.GA.jar:2.10.0.GA]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_21]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_21]
          at java.lang.Thread.run(Thread.java:619) [na:1.6.0_21]
      Caused by: java.lang.ClassCastException: java.lang.Byte cannot be cast to java.util.Set
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyInMemoryState(StateTransferManagerImpl.java:341) ~[infinispan-core.jar:4.1.0.FINAL]
          ... 30 common frames omitted