-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: JCS Disk Cache
PostPosted: Tue Oct 21, 2003 3:43 pm 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
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)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 3:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Try putting a breakpoint in: net.sf.hibernate.cache.JCSCache.get() and see what Hibernate is passing in.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.