4 Replies Latest reply on Jan 17, 2007 5:57 PM by J Yang

    Error: StateTransferVersion 123 only supports transferring

    J Yang Newbie

      Hello,

      I am getting the following error at startup. Any idea?

      12:17:42,175 INFO [TreeCache] locking the /ticket subtree to return the in-memory (transient) state
      12:17:42,175 ERROR [RpcDispatcher] failed invoking method
      java.lang.IllegalArgumentException: Invalid node /ticket -- StateTransferVersion 123 only supports transferring FQN '/'
       at org.jboss.cache.statetransfer.StateTransferGenerator_123.generateStateTransfer(StateTransferGenerator_123.java:34)
       at org.jboss.cache.TreeCache._getState(TreeCache.java:2448)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236)
       at org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:44)
       at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
       at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:176)
       at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
       at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:35)
       at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
       at org.jboss.cache.interceptors.ReplicationInterceptor.replicate(ReplicationInterceptor.java:220)
       at org.jboss.cache.TreeCache._replicate(TreeCache.java:3864)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236)
       at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:220)
       at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
       at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
       at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
       at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
       at java.lang.Thread.run(Thread.java:595)



      I suspect it has something to do with calling registerClassLoader() and activateRegion(). I tried adding an empty HashMap in the node. But same error...


      public void ini() {
      ...
       cache.put(FQN_TICKET, new HashMap());
      
       cache.registerClassLoader("/" + FQN_TICKET, this.getClass().getClassLoader());
       cache.activateRegion("/" + FQN_TICKET);
      ...
      }


      Thanks,
      Jennifer