ehcache memory only cache attempting to store to disk -
i have following in ehcache.xml
<?xml version="1.0" encoding="utf-8"?> <ehcache xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nonamespaceschemalocation="http://ehcache.org/ehcache.xsd" updatecheck="false" > <defaultcache maxelementsinmemory="500" eternal="false" overflowtodisk="false" overflowtooffheap="false" memorystoreevictionpolicy="lru" > <persistence strategy="none" /> </defaultcache> <cache name="leadsourcecollectionscache" maxelementsinmemory="500" eternal="false" overflowtodisk="false" overflowtooffheap="false" memorystoreevictionpolicy="lru" > <persistence strategy="none" /> </cache> </ehcache>
when start server see following ehcache related debug output
07.08.2013 15:36:10 debug-configurationfactory: [configuring ehcache inputstream] 07.08.2013 15:36:10 debug-beanhandler: [ignoring ehcache attribute xmlns:xsi] 07.08.2013 15:36:10 debug-beanhandler: [ignoring ehcache attribute xsi:nonamespaceschemalocation] 07.08.2013 15:36:10 debug-propertyutil: [propertiesstring null.] 07.08.2013 15:36:10 debug-configurationhelper: [no cachemanagereventlistenerfactory class specified. skipping...] 07.08.2013 15:36:10 debug-cache: [no bootstrapcacheloaderfactory class specified. skipping...] 07.08.2013 15:36:10 debug-cache: [cachewriter factory not configured. skipping...] 07.08.2013 15:36:10 debug-configurationhelper: [no cacheexceptionhandlerfactory class specified. skipping...] 07.08.2013 15:36:10 debug-cache: [no bootstrapcacheloaderfactory class specified. skipping...] 07.08.2013 15:36:10 debug-cache: [cachewriter factory not configured. skipping...] 07.08.2013 15:36:10 debug-configurationhelper: [no cacheexceptionhandlerfactory class specified. skipping...] 07.08.2013 15:36:10 debug-memorystore: [initialized net.sf.ehcache.store.notifyingmemorystore leadsourcecollectionscache] 07.08.2013 15:36:10 debug-cache: [initialised cache: leadsourcecollectionscache] 07.08.2013 15:36:10 debug-configurationhelper: [cachedecoratorfactory not configured. skipping 'leadsourcecollectionscache'.] 07.08.2013 15:36:10 debug-configurationhelper: [cachedecoratorfactory not configured defaultcache. skipping 'leadsourcecollectionscache'.] 07.08.2013 15:36:10 debug-cache: [no bootstrapcacheloaderfactory class specified. skipping...] 07.08.2013 15:36:10 debug-cache: [cachewriter factory not configured. skipping...] 07.08.2013 15:36:10 debug-memorystore: [initialized net.sf.ehcache.store.memorystore leadsourcecollectioncache] 07.08.2013 15:36:10 debug-diskstorepathmanager: [using diskstore path /tmp] 07.08.2013 15:36:10 debug-diskstorepathmanager: [holding exclusive lock on /tmp/.ehcache-diskstore.lock] 07.08.2013 15:36:10 debug-diskstoragefactory: [failed delete file lead%0053ource%0043ollection%0043ache.index] 07.08.2013 15:36:10 debug-diskstoragefactory: [matching data file missing (or empty) index file. deleting index file /tmp/lead%0053ource%0043ollection%0043ache.index] 07.08.2013 15:36:10 debug-diskstoragefactory: [failed delete file lead%0053ource%0043ollection%0043ache.index] 07.08.2013 15:36:10 debug-cache: [initialised cache: leadsourcecollectioncache]
so looks creating leadsourcecollectioncache memory store cache, want. however, when call leadsourcecollectioncache.put following
07.08.2013 15:37:46 debug-segment: [put added 0 on heap] 07.08.2013 15:37:46 error-diskstoragefactory: [disk write of 1-2 failed: ]
java.io.notserializableexception: intouch.connector.business.leadsourcecollection @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1181) @ java.io.objectoutputstream.defaultwritefields(objectoutputstream.java:1541) @ java.io.objectoutputstream.defaultwriteobject(objectoutputstream.java:439) @ net.sf.ehcache.element.writeobject(element.java:835) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ java.io.objectstreamclass.invokewriteobject(objectstreamclass.java:988) @ java.io.objectoutputstream.writeserialdata(objectoutputstream.java:1493) @ java.io.objectoutputstream.writeordinaryobject(objectoutputstream.java:1429) @ java.io.objectoutputstream.writeobject0(objectoutputstream.java:1175) @ java.io.objectoutputstream.writeobject(objectoutputstream.java:347) @ net.sf.ehcache.util.memoryefficientbytearrayoutputstream.serialize(memoryefficientbytearrayoutputstream.java:97) @ net.sf.ehcache.store.disk.diskstoragefactory.serializeelement(diskstoragefactory.java:405) @ net.sf.ehcache.store.disk.diskstoragefactory.write(diskstoragefactory.java:384) @ net.sf.ehcache.store.disk.diskstoragefactory$diskwritetask.call(diskstoragefactory.java:485) @ net.sf.ehcache.store.disk.diskstoragefactory$persistentdiskwritetask.call(diskstoragefactory.java:1088) @ net.sf.ehcache.store.disk.diskstoragefactory$persistentdiskwritetask.call(diskstoragefactory.java:1072) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:178) @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:292) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:724)
i cannot life of me figure out why happening. not want cache touch disk in way. don't know why attempt write things /tmp when persistence set none.
facepalm
seems had typo in name. had leadsourcecollectionscache should have been leadsourcecollectioncache without 's'.
my co-worker got following output didn't get:
warn-configurationfactory: [no configuration found. configuring ehcache ehcache-failsafe.xml found in classpath: jar:file:/users/foo/.m2/repository/net/sf/ehcache/ehcache-core/2.6.6/ehcache-core-2.6.6.jar!/ehcache-failsafe.xml]
Comments
Post a Comment