Here is the stacktrace, was in the stderror log :)

It looks like a classloader problem, but we don't get errors using the
cache. We are using websphere here as you can see from the stacktrace.

java.lang.NullPointerException
at
com.ibm.ws.classloader.SinglePathClassProvider.getRealResourcePath(Singl
ePathClassProvider.java:282)
at
com.ibm.ws.classloader.SinglePathClassProvider$1.run(SinglePathClassProv
ider.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytesFromDir(Sing
lePathClassProvider.java:146)
at
com.ibm.ws.classloader.SinglePathClassProvider.getClassBytes(SinglePathC
lassProvider.java:138)
at
com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader
.java:337)
at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader
.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
at
org.apache.jcs.utils.locking.ReadWriteLockManager.done(ReadWriteLockMana
ger.java:204)
at
org.apache.jcs.auxiliary.disk.AbstractDiskCache.releaseLock(AbstractDisk
Cache.java:381)
at
org.apache.jcs.auxiliary.disk.AbstractDiskCache.access$200(AbstractDiskC
ache.java:92)
at
org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu
t(AbstractDiskCache.java:465)
at
org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav
a:469)
at
org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ
ueue.java:386)
at
org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav
a:354)



-----Original Message-----
From: Estefano Eduardo [mailto:[EMAIL PROTECTED] 
Sent: Monday, 02 February, 2004 13:51
To: [EMAIL PROTECTED]
Subject: AbstractDiskCache NullPointerException


Hi everyone. I'm getting this exception and don't know how to
investigate it. I don't think I have the logging setup correctly because
I don't see a stacktrace anywhere.

[2/2/04 13:17:53:472 CET] 62318542 AbstractDiskC E
org.apache.jcs.auxiliary.disk.AbstractDiskCache
java.lang.NullPointerException


The error happends 20min after I populate the cache. Here is the
diskcache config:
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF
actory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
dDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=d:\\projects\\mirostaticweb\\jcscac
he

Here is the cache region that I think is causing the error. I don't know
for sure but I suspect because is the only one that is using
MemoryShrinker. I suspect it is because nothing was written to the cache
when the shrinker thread ran.

jcs.region.customerCache=DC
jcs.region.customerCache.cacheattributes=org.apache.jcs.engine.Composite
CacheAttributes jcs.region.customerCache.cacheattributes.MaxObjects=5000
jcs.region.customerCache.cacheattributes.MemoryCacheName=org.apache.jcs.
engine.memory.lru.LRUMemoryCache
jcs.region.customerCache.cacheattributes.UseMemoryShrinker=true
jcs.region.customerCache.cacheattributes.MaxMemoryIdleTimeSeconds=1800
jcs.region.customerCache.cacheattributes.ShrinkerIntervalSeconds=1800
jcs.region.customerCache.elementattributes=org.apache.jcs.engine.Element
Attributes jcs.region.customerCache.elementattributes.IsEternal=false
jcs.region.customerCache.elementattributes.MaxLifeSeconds=3600
jcs.region.customerCache.elementattributes.IdleTime=1800
jcs.region.customerCache.elementattributes.IsSpool=true
jcs.region.customerCache.elementattributes.IsRemote=false
jcs.region.customerCache.elementattributes.IsLateral=false

Does anyone have a similar problem? Is this a bug? Nothing to worry
about? Also, does anyone know anything about how to configure the
loggigng correctly? I use log4j in the application.

Thanks in advance.

Eduardo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to