EHC ❯ NPE while evicting the expired elements
-
Bug
-
Status: New
-
2 Major
-
Resolution:
-
ehcache,ehcache-core
-
-
drb
-
Reporter: kamalc
-
May 30, 2016
-
0
-
Watchers: 1
-
May 30, 2016
-
Description
I’m using ehcache with `timeToIdleSeconds` property with un-bounded disk store space. To evict the expired elements periodically, I’m calling cache#evictExpiredElements call.
Sometimes the above call leads to NPE.
java.lang.NullPointerException at net.sf.ehcache.store.offheap.disk.OffHeapDiskStore.expireElements(OffHeapDiskStore.java:348) ~[ehcache-ee-2.9.0.jar:2.9.0] at net.sf.ehcache.store.CacheStore.expireElements(CacheStore.java:426) ~[ehcache-ee-2.9.0.jar:2.9.0] at net.sf.ehcache.Cache.evictExpiredElements(Cache.java:2986) ~[ehcache-ee-2.9.0.jar:2.9.0]
My cache configuration: