5 Replies Latest reply on Nov 20, 2009 7:36 AM by brian.stansberry

    Problem with marshalling object.

    quoct

      Hi,
      I'm just trying out something very simple, and I got this exception. I've done lot of research but found not help at all.

      In my test application, I'm using the total-replication.xml configuration file shipped with JBossCache.

      I got this exception when I tried to delete a value in my cache. It's when JBossCache perform replication and it failed.

      Thanks - Quoc

      Exception:

      May 10, 2009 11:23:47 AM org.jboss.cache.marshall.CacheMarshaller200 objectToObjectStream
      SEVERE: Error while marshalling object: ReplicateCommand{cmds=RemoveNodeCommand{fqn=/NodeReference{delegate=UnversionedNode[ /child1 data=[Key2, Key1, ]]}, dataVersion=null, globalTransaction=null, skipSendingNodeEvents=false, parentFqn=null, targetNode=null}}
      java.lang.Exception: Don't know how to marshall object of type class org.jboss.cache.mvcc.ReadCommittedNode
      at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:346)
      at org.jboss.cache.marshall.CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)
      at org.jboss.cache.marshall.CacheMarshaller200.marshallFqn(CacheMarshaller200.java:393)
      at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:275)
      at org.jboss.cache.marshall.CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)
      at org.jboss.cache.marshall.CacheMarshaller200.marshallCommand(CacheMarshaller200.java:377)
      at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:263)
      at org.jboss.cache.marshall.CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)
      at org.jboss.cache.marshall.CacheMarshaller200.marshallCommand(CacheMarshaller200.java:377)
      at org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:263)
      at org.jboss.cache.marshall.CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)
      at org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:167)
      at org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:121)
      at org.jboss.cache.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:182)
      at org.jboss.cache.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:52)
      at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:278)
      at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:256)
      at org.jboss.cache.util.concurrent.WithinThreadExecutor.submit(WithinThreadExecutor.java:82)
      at org.jboss.cache.marshall.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:179)
      at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:474)
      at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:450)
      at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:454)
      at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:161)
      at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:135)
      at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:107)
      at org.jboss.cache.interceptors.ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:160)
      at org.jboss.cache.interceptors.ReplicationInterceptor.visitRemoveNodeCommand(ReplicationInterceptor.java:125)
      at org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
      at org.jboss.cache.commands.AbstractVisitor.visitRemoveNodeCommand(AbstractVisitor.java:75)
      at org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:261)
      at org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:250)
      at org.jboss.cache.commands.AbstractVisitor.visitRemoveNodeCommand(AbstractVisitor.java:75)
      at org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
      at org.jboss.cache.commands.AbstractVisitor.visitRemoveNodeCommand(AbstractVisitor.java:75)
      at org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)
      at org.jboss.cache.interceptors.InvocationContextInterceptor.visitRemoveNodeCommand(InvocationContextInterceptor.java:88)
      at org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      at org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:287)
      at org.jboss.cache.invocation.CacheInvocationDelegate.removeNode(CacheInvocationDelegate.java:409)
      at org.jboss.cache.invocation.NodeInvocationDelegate.removeChild(NodeInvocationDelegate.java:349)
      at TestJBossCache.main(TestJBossCache.java:67)