1 Reply Latest reply on Mar 18, 2011 9:17 AM by Sanne Grinovero

    Guide me to store user defined instance in cache with clustering

    venkatesha k c Newbie

      Hi,

      I'm trying to store an object of mine.

      but while sharing cache with other node. I'm getting the below exception.

       

      Mar 18, 2011 5:44:43 PM org.infinispan.interceptors.InvocationContextInterceptor handleAll

      SEVERE: Execution error:

      org.infinispan.CacheException: Problems invoking command.

                at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:149)

                at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:577)

                at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:488)

                at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:364)

                at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:770)

                at org.jgroups.JChannel.up(JChannel.java:1466)

                at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:953)

                at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:477)

                at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:262)

                at org.jgroups.protocols.FRAG2.up(FRAG2.java:189)

                at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)

                at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)

                at org.jgroups.protocols.pbcast.GMS.up(GMS.java:887)

                at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:233)

                at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:841)

                at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:704)

                at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:131)

                at org.jgroups.protocols.FD.up(FD.java:265)

                at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:274)

                at org.jgroups.protocols.MERGE2.up(MERGE2.java:209)

                at org.jgroups.protocols.Discovery.up(Discovery.java:291)

                at org.jgroups.protocols.PING.up(PING.java:66)

                at org.jgroups.protocols.MPING.up(MPING.java:174)

                at org.jgroups.protocols.TP.passMessageUp(TP.java:1092)

                at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1632)

                at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1614)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.ClassNotFoundException: com.angel.poc.callcenter.CallCenter

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:247)

                at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:135)

                at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:116)

                at org.jboss.marshalling.river.RiverUnmarshaller.doResolveClass(RiverUnmarshaller.java:1148)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:862)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1183)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:270)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:207)

                at org.jboss.marshalling.AbstractUnmarshaller.readObject(AbstractUnmarshaller.java:85)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:97)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:61)

                at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:344)

                at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:234)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:357)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:207)

                at org.jboss.marshalling.AbstractUnmarshaller.readObject(AbstractUnmarshaller.java:85)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:97)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:61)

                at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:344)

                at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:234)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:357)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:207)

                at org.jboss.marshalling.AbstractUnmarshaller.readObject(AbstractUnmarshaller.java:85)

                at org.infinispan.marshall.jboss.GenericJBossMarshaller.objectFromObjectStream(GenericJBossMarshaller.java:172)

                at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:118)

                at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromByteBuffer(MarshallerAdapter.java:26)

                at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:142)

                ... 28 more

      org.infinispan.CacheException: Problems invoking command.

                at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:149)

                at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:577)

                at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:488)

                at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:364)

                at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:770)

                at org.jgroups.JChannel.up(JChannel.java:1466)

                at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:953)

                at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:477)

                at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:262)

                at org.jgroups.protocols.FRAG2.up(FRAG2.java:189)

                at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)

                at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)

                at org.jgroups.protocols.pbcast.GMS.up(GMS.java:887)

                at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:233)

                at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:841)

                at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:704)

                at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:131)

                at org.jgroups.protocols.FD.up(FD.java:265)

                at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:274)

                at org.jgroups.protocols.MERGE2.up(MERGE2.java:209)

                at org.jgroups.protocols.Discovery.up(Discovery.java:291)

                at org.jgroups.protocols.PING.up(PING.java:66)

                at org.jgroups.protocols.MPING.up(MPING.java:174)

                at org.jgroups.protocols.TP.passMessageUp(TP.java:1092)

                at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1632)

                at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1614)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.ClassNotFoundException: com.angel.poc.callcenter.CallCenter

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                at java.security.AccessController.doPrivileged(Native Method)

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:247)

                at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:135)

                at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:116)

                at org.jboss.marshalling.river.RiverUnmarshaller.doResolveClass(RiverUnmarshaller.java:1148)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:862)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1183)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:270)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:207)

                at org.jboss.marshalling.AbstractUnmarshaller.readObject(AbstractUnmarshaller.java:85)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:97)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:61)

                at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:344)

                at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:234)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:357)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:207)

                at org.jboss.marshalling.AbstractUnmarshaller.readObject(AbstractUnmarshaller.java:85)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:97)

                at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:61)

                at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:344)

                at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:234)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:357)

                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:207)

                at org.jboss.marshalling.AbstractUnmarshaller.readObject(AbstractUnmarshaller.java:85)

                at org.infinispan.marshall.jboss.GenericJBossMarshaller.objectFromObjectStream(GenericJBossMarshaller.java:172)

                at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:118)

                at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromByteBuffer(MarshallerAdapter.java:26)

                at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:142)

                ... 28 more

       

      Please help me.

       

      Reply ASAP.

       

      thanks

      Venkatesha.k.c