You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the scenario, puts done UserManagedCache configured with above settings and closed the cache, further when trying to reload the persisted cache data hits the below exception.
Please note that the same test worked fine sometime ago (don't have exact date/build history)
16:34:38.921 [pool-6-thread-1] INFO o.e.c.i.r.LoggingRobustResilienceStrategy - Ehcache key 71791 recovered from
org.ehcache.core.spi.store.StoreAccessException: java.lang.NullPointerException
at org.ehcache.impl.internal.store.heap.OnHeapStore.getOrComputeIfAbsent(OnHeapStore.java:747) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.impl.internal.store.tiering.TieredStore.get(TieredStore.java:110) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.core.Ehcache.get(Ehcache.java:167) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.core.PersistentUserManagedEhcache.get(PersistentUserManagedEhcache.java:148) [ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at com.terracotta.qa.ehcache.validation.ValidatingGetOperation.exec(ValidatingGetOperation.java:57) [classes/:na]
at io.rainfall.ScenarioRun.initStatistics(ScenarioRun.java:284) [rainfall-core-1.1.3-20160703.112848-15.jar:na]
at io.rainfall.ScenarioRun.start(ScenarioRun.java:135) [rainfall-core-1.1.3-20160703.112848-15.jar:na]
at com.terracotta.qa.ehcache.tiering.test.UserManagedPersistenceCacheTest$2.call(UserManagedPersistenceCacheTest.java:172) [test-classes/:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: java.lang.NullPointerException: null
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1124) ~[na:1.7.0_79]
at org.ehcache.impl.serialization.CompactJavaSerializer$OIS.readClassDescriptor(CompactJavaSerializer.java:239) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601) ~[na:1.7.0_79]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) ~[na:1.7.0_79]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) ~[na:1.7.0_79]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) ~[na:1.7.0_79]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) ~[na:1.7.0_79]
at org.ehcache.impl.serialization.CompactJavaSerializer.read(CompactJavaSerializer.java:131) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.impl.internal.store.offheap.LazyOffHeapValueHolder.forceDeserialization(LazyOffHeapValueHolder.java:99) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.impl.internal.store.offheap.LazyOffHeapValueHolder.value(LazyOffHeapValueHolder.java:53) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.impl.internal.store.heap.OnHeapStore.cloneValueHolder(OnHeapStore.java:1455) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.impl.internal.store.heap.OnHeapStore.importValueFromLowerTier(OnHeapStore.java:1445) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
at org.ehcache.impl.internal.store.heap.OnHeapStore.getOrComputeIfAbsent(OnHeapStore.java:703) ~[ehcache-3.1.0-SNAPSHOT.jar:3.1.0-SNAPSHOT a6bf3bda6216c6b190b53114a46fbd3e00709639]
... 11 common frames omitted
The text was updated successfully, but these errors were encountered:
I ran into the same issue. I determined this was a bug in Ehcache after a bit of debugging through my code. The resolution for me was to downgrade my Ehcache version to 3.0.2 where this bug doesn't seem to exist. I tried importing 3.1.0 but that version doesn't appear to import correctly from Maven Central.
Client version:
Settings:
In the scenario, puts done UserManagedCache configured with above settings and closed the cache, further when trying to reload the persisted cache data hits the below exception.
Please note that the same test worked fine sometime ago (don't have exact date/build history)
The text was updated successfully, but these errors were encountered: