1 Reply Latest reply on Jul 6, 2012 5:17 AM by Dan Berindei

    Infinispan cluster: ClassNotFoundException for a List

    lucianob Newbie

      Hi,

      I have a problem using infinispan cache between 2 cluster nodes, when passing values of type List.

      I know there are few similar forum thread, but their solutions don't seem to work for me.

      I use jboss 7.1.1.final , infinispan 5.1.5.final, java 1.6.

       

      Here is my code.

       

      Infinispan is used in a Quartz job.

       

       

      public class Test3InfinispanJob extends DummyJob {
      
      
                private CacheContainer cc;
                private Cache<String, Object> cache;
                private CacheListener<String, Object> cl;
      
      
                public Test3InfinispanJob() {
                          super();
                          InitialContext ic;
                          try {
                                    ic = new InitialContext();
                                    cc = (CacheContainer) ic.lookup("java:jboss/infinispan/cluster");
      
      
                                    cache = cc.getCache();
                          } catch (NamingException e) {
                                    log.error(e);
                                    throw new IllegalStateException(e);
                          }
                }
      
      
                @Override
                public void execute(JobExecutionContext context) throws JobExecutionException {
                          try {
                                    log.info("cache: " + cache);
                                    List<SerializableClass> v = (List<SerializableClass>) cache.get("valore"); // unchecked cast
                                    log.info("from cache: " + listToString(v));
      
      
                                    v = listGenerate();
                                    log.info("to cache: " + listToString(v));
                                    cache.put("valore", v);
                          } catch (ClassCastException e) {
                                    log.warn("Catturata ClassCastException: reset del valore nella cache", e);
                                    cache.remove("valore");
                          }
                }
      
      
                private List<SerializableClass> listGenerate() {
                          List<SerializableClass> rv = new ArrayList<SerializableClass>();
                          for (int i = 0; i < 5; ++i) {
                                    rv.add(new SerializableClass());
                          }
                          return rv;
                }
      
      
                private String listToString(List<SerializableClass> l) {
                          String rv = "";
                          if (l != null) {
                                    StringBuffer ret = new StringBuffer("");
                                    for (SerializableClass sc : l) {
                                              ret.append(sc.toString()).append(";");
                                              rv = ret.toString();
                                    }
                          } else {
                                    rv = "NULL";
                          }
                          return rv;
                }
      }
      
      

       

      This is the class for the values:

       

       

      public class SerializableClass implements Serializable {
      
      
                private static final long serialVersionUID = 1L;
      
      
                protected int aNumber;
                protected String aString;
                protected Date aDate;
      
      
                public SerializableClass(int aNumber, String aString, Date aDate) {
                          super();
                          this.aNumber = aNumber;
                          this.aString = aString;
                          this.aDate = aDate;
                }
                public SerializableClass() {
                          super();
                          this.aNumber = (int) (Math.random() * 8999 + 1000);
                          this.aString = String.valueOf(Math.random() * 8999 + 1000);
                          this.aDate = new Date();
                }
      
      
                @Override
                public String toString() {
                          return "number=" + aNumber + ":string=" + aString + ":date=" + aDate.toString();
                }
      }
      
      

       

      Infinispan configuration:

       

             <subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="cluster">
                  <cache-container name="cluster" aliases="ha-partition" default-cache="default" jndi-name="java:jboss/infinispan/cluster">
                      <transport lock-timeout="60000"/>
                      <replicated-cache name="default" mode="SYNC" start="EAGER" batching="true">
                          <locking isolation="REPEATABLE_READ"/>
                      </replicated-cache>
                  </cache-container>
      
      

       

      It works fine on one node. But when I deploy on a second node, I get this exception:

       

      15:11:34,771 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (OOB-19,null) ISPN000136: Execution error: org.infinispan.CacheException: Caught exception [org.infinispan.CacheException] while invoking method [public void org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager$ClassLoaderAwareListener.event(org.infinispan.notifications.cachelistener.event.Event) throws java.lang.Throwable] on listener instance: org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager$ClassLoaderAwareListener@35acc3ad
                at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:205) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:42) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation.invoke(AbstractListenerImpl.java:221) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.notifications.cachelistener.CacheNotifierImpl.notifyCacheEntryModified(CacheNotifierImpl.java:160) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.write.PutKeyValueCommand.perform(PutKeyValueCommand.java:94) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.CallInterceptor.handleDefault(CallInterceptor.java:83) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:62) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:77) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:178) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.ReplicationInterceptor.visitPutKeyValueCommand(ReplicationInterceptor.java:149) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:77) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.EntryWrappingInterceptor$EntryWrappingVisitor.visitPutKeyValueCommand(EntryWrappingInterceptor.java:261) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:77) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:90) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:120) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:132) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:58) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:106) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.StateTransferLockInterceptor.handleWithRetries(StateTransferLockInterceptor.java:213) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.StateTransferLockInterceptor.visitPrepareCommand(StateTransferLockInterceptor.java:85) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:132) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:91) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:70) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.commands.tx.PrepareCommand.perform(PrepareCommand.java:128) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.remoting.InboundInvocationHandlerImpl.handleInternal(InboundInvocationHandlerImpl.java:127) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.remoting.InboundInvocationHandlerImpl.handleWithWaitForBlocks(InboundInvocationHandlerImpl.java:136) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.remoting.InboundInvocationHandlerImpl.handleWithRetry(InboundInvocationHandlerImpl.java:162) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.remoting.InboundInvocationHandlerImpl.handle(InboundInvocationHandlerImpl.java:114) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.executeCommand(CommandAwareRpcDispatcher.java:226) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:203) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:456) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:363) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:238) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:543) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jboss.as.clustering.jgroups.ClassLoaderAwareUpHandler.up(ClassLoaderAwareUpHandler.java:56) [jboss-as-clustering-jgroups-7.1.1.Final.jar:7.1.1.Final]
                at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jboss.as.clustering.jgroups.MuxChannel$ClassLoaderAwareMuxUpHandler.up(MuxChannel.java:64) [jboss-as-clustering-jgroups-7.1.1.Final.jar:7.1.1.Final]
                at org.jgroups.JChannel.up(JChannel.java:716) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1026) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.FRAG2.up(FRAG2.java:181) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.FlowControl.up(FlowControl.java:418) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.FlowControl.up(FlowControl.java:400) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.pbcast.GMS.up(GMS.java:881) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.UNICAST2.handleDataReceived(UNICAST2.java:759) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:365) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:595) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.BARRIER.up(BARRIER.java:102) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:140) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.FD.up(FD.java:273) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:282) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.MERGE2.up(MERGE2.java:205) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.Discovery.up(Discovery.java:355) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.stack.Protocol.up(Protocol.java:358) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.TP.passMessageUp(TP.java:1174) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1722) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1704) [jgroups-3.0.6.Final.jar:3.0.6.Final]
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: org.infinispan.CacheException: Unable to unmarshall value
                at org.infinispan.marshall.MarshalledValue.deserialize0(MarshalledValue.java:150) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.MarshalledValue.deserialize(MarshalledValue.java:134) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.MarshalledValue.get(MarshalledValue.java:215) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.notifications.cachelistener.event.EventImpl.getValue(EventImpl.java:161) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at it.infoblu.bit.quartz.test.Test3InfinispanJob$CacheListener.logEvent(Test3InfinispanJob.java:129)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]
                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]
                at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager$ClassLoaderAwareListener.event(DefaultEmbeddedCacheManager.java:367) [jboss-as-clustering-infinispan-7.1.1.Final.jar:7.1.1.Final]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]
                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]
                at org.infinispan.notifications.AbstractListenerImpl$ListenerInvocation$1.run(AbstractListenerImpl.java:200) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                ... 89 more
      Caused by: java.lang.ClassNotFoundException: it.infoblu.bit.quartz.test.SerializableClass from [Module "org.jboss.as.clustering.infinispan:main" from local module loader @7f2ad19e (roots: C:\local\jboss-as-7.1.1.Final\modules)]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
                at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_31]
                at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_31]
                at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:135) [jboss-marshalling-1.3.11.GA.jar:1.3.11.GA]
                at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:116) [jboss-marshalling-1.3.11.GA.jar:1.3.11.GA]
                at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:892)
                at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1204)
                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
                at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.11.GA.jar:1.3.11.GA]
                at org.infinispan.marshall.exts.ArrayListExternalizer.readObject(ArrayListExternalizer.java:57) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.exts.ArrayListExternalizer.readObject(ArrayListExternalizer.java:45) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:395) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:224) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)
                at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
                at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.11.GA.jar:1.3.11.GA]
                at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:163) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:114) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:104) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                at org.infinispan.marshall.MarshalledValue.deserialize0(MarshalledValue.java:145) [infinispan-core-5.1.5.FINAL.jar:5.1.5.FINAL]
                ... 103 more
      
      

       

      I've made other test, but without any luck: putting a single SerializableClass works fine, List or ArrayList throws this exception.

       

      Thank you for any help

       

      Luciano B