4 Replies Latest reply on Jan 30, 2013 2:33 PM by Paul Ferraro

    Issue with Infinispan Cache

    Ram J Newbie

      Hi All,

       

      When i configured local cache contanier in domain.xml and deploy the EJB application. I am getting an ERROR "java.lang.ClassNotFoundException: org.jboss.as.clustering.HashableMarshalledValue" while application get deploying, Even the Class is existed in jboss-as-clustering-api-7.1.0.Final-redhat-1.jar file in module folder.

       

      11:48:03,732 ERROR [org.infinispan.loaders.file.FileCacheStore] (Scheduled-eviction-thread-0) ISPN000062: Error while reading

      from file: /apps/jboss-eap-6.0_Master/domain/servers/server-three/data/ejb/com.test.HelloEJB/243343360: java.lang.ClassNotFoundException: org.jboss.as.clustering.HashableMarshalledValue from [Module "org.jboss

      .as.clustering.infinispan:main" from local module loader @6a3b8b49 (roots: /apps/jboss-eap-6.0_Master/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_29]

              at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_29]

              at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:135) [jboss-marshalling-1.3.9.GA-

      redhat-1.jar:1.3.9.GA-redhat-1]

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

      GA-redhat-1.jar:1.3.9.GA-redhat-1]

              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.9.GA-redh

      at-1.jar:1.3.9.GA-redhat-1]

              at org.infinispan.container.entries.ImmortalCacheEntry$Externalizer.readObject(ImmortalCacheEntry.java:157) [infinisp

      an-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.container.entries.ImmortalCacheEntry$Externalizer.readObject(ImmortalCacheEntry.java:148) [infinisp

      an-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:401) [infini

      span-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:290) [infinispan-core-5.1.2.FINA

      L-redhat-1.jar:5.1.2.FINAL-redhat-1]

              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.9.GA-redh

      at-1.jar:1.3.9.GA-redhat-1]

              at org.infinispan.loaders.bucket.Bucket$Externalizer.readObject(Bucket.java:157) [infinispan-core-5.1.2.FINAL-redhat-

      1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.bucket.Bucket$Externalizer.readObject(Bucket.java:139) [infinispan-core-5.1.2.FINAL-redhat-

      1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:401) [infini

      span-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:290) [infinispan-core-5.1.2.FINA

      L-redhat-1.jar:5.1.2.FINAL-redhat-1]

              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.9.GA-redh

      at-1.jar:1.3.9.GA-redhat-1]

              at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:148) [in

      finispan-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.marshall.VersionAwareMarshaller.objectFromObjectStream(VersionAwareMarshaller.java:185) [infinispan

      -core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromObjectStream(AbstractDelegatingMarshaller.java:59)

      [infinispan-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.file.FileCacheStore.objectFromInputStreamInReentrantMode(FileCacheStore.java:439) [infinisp

      an-core-5.1.2.FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.file.FileCacheStore.loadBucket(FileCacheStore.java:312) [infinispan-core-5.1.2.FINAL-redhat

      -1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.file.FileCacheStore.doPurge(FileCacheStore.java:254) [infinispan-core-5.1.2.FINAL-redhat-1.

      jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.file.FileCacheStore.purgeInternal(FileCacheStore.java:233) [infinispan-core-5.1.2.FINAL-red

      hat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.AbstractCacheStore$2.run(AbstractCacheStore.java:106) [infinispan-core-5.1.2.FINAL-redhat-1

      .jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:41) [infinispan-core-5.1.2.F

      INAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.loaders.AbstractCacheStore.purgeExpired(AbstractCacheStore.java:103) [infinispan-core-5.1.2.FINAL-r

      edhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.eviction.EvictionManagerImpl.processEviction(EvictionManagerImpl.java:118) [infinispan-core-5.1.2.F

      INAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at org.infinispan.eviction.EvictionManagerImpl$ScheduledTask.run(EvictionManagerImpl.java:144) [infinispan-core-5.1.2

      .FINAL-redhat-1.jar:5.1.2.FINAL-redhat-1]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_29]

              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_29]

              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_29]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:9

      8) [rt.jar:1.6.0_29]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:

      180) [rt.jar:1.6.0_29]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt

      .jar:1.6.0_29]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

       

       

      Local-Cache configuration

       

      <local-cache name="SFSBlocalCache" batching="true">

                              <transaction mode="NONE"/>

                              <eviction strategy="LRU" max-entries="10000"/>

                              <expiration max-idle="-1" lifespan="-1"/>

                              <file-store passivation="false" purge="false"/>

                          </local-cache>

       

      Could any one help me on this issue.