Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Ehcache在逐出过期元素时抛出NullPointerException_Java_Ehcache_Ehcache Bigmemory - Fatal编程技术网

Java Ehcache在逐出过期元素时抛出NullPointerException

Java Ehcache在逐出过期元素时抛出NullPointerException,java,ehcache,ehcache-bigmemory,Java,Ehcache,Ehcache Bigmemory,在Ehcache中,为了删除旧条目,我启用了timeToIdleSeconds属性 一个进程周期性地调用cache.executeExpireElements() 缓存配置: <cache name="cache" maxEntriesLocalHeap="100000" eternal="false" overflowToDisk="true" diskPersistent="true" timeToIdleSeconds="60"/> 逐出期间引发了以下异常(不总是):

Ehcache
中,为了删除旧条目,我启用了
timeToIdleSeconds
属性

一个进程周期性地调用
cache.executeExpireElements()

缓存配置:

 <cache name="cache" maxEntriesLocalHeap="100000" eternal="false" overflowToDisk="true" diskPersistent="true" timeToIdleSeconds="60"/>

逐出期间引发了以下异常(不总是):

EhCache:run():在net.sf.EhCache.store.offheap.disk.OffHeapDiskStore.expireElements(OffHeapDiskStore.java:348)捕获java.lang.NullPointerException ~[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.executeExpiredElements(Cache.java:2986) ~[ehcache-ee-2.9.0.jar:2.9.0]


我遗漏了什么吗?

Ehcache 2.9.x中的Offheap是一项企业功能,您最好联系支持部门。Ehcache 2.9.x中的Offheap是一项企业功能,您最好联系支持部门。