Hey,
I suddenly starting getting a bunch of these errors. Any idea what they might be?
I set the cache directory to /var/webapp/.jcs and set it owned by the user that runs Tomcat. The directory is full of 0-byte files with the names of my regions.
From my cache.ccf:
Code:
jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=14400
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=false
jcs.region.org.etp.Entity=
jcs.region.org.etp.Entity.cacheattributes.MaxObjects=100
jcs.region.org.etp.Entity.things=
jcs.region.org.etp.Entity.things.cacheattributes.MaxObjects=100
...
# Auxiliary CACHE (disk cache)
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=@webapp.home@/.jcs
Code:
2003-10-21 13:16:07,533 [Thread-74] ERROR org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - java.lang.NullPointerException
2003-10-21 13:16:07,533 [Thread-74] ERROR org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Failure reseting state
java.lang.NullPointerException
at org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.reset(IndexedDiskCache.java:502)
at org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doRemove(IndexedDiskCache.java:461)
at org.apache.jcs.auxiliary.disk.AbstractDiskCache.remove(AbstractDiskCache.java:274)
at org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:760)
at org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:690)
at org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:490)
at org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:440)
at org.apache.jcs.access.CacheAccess.get(CacheAccess.java:236)
at net.sf.hibernate.cache.JCSCache.get(JCSCache.java:29)
at net.sf.hibernate.cache.ReadWriteCache.get(ReadWriteCache.java:36)
at net.sf.hibernate.collection.CollectionPersister.getCachedCollection(CollectionPersister.java:366)