jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject RE: error using block disk cache
Date Tue, 11 Aug 2009 17:03:29 GMT

I'm having trouble replicating this.  I can't see how it could happen. . . .

Null items in the unit tests do not cause this problem.  

What's the data like?

Aaron


--- On Tue, 8/11/09, Aaron Smuts <asmuts@yahoo.com> wrote:

> From: Aaron Smuts <asmuts@yahoo.com>
> Subject: RE: error using block disk cache
> To: "JCS Users List" <jcs-users@jakarta.apache.org>
> Date: Tuesday, August 11, 2009, 9:45 AM
> 
> Are you getting this error all the time, or just
> occasionally.  Could the item be null?
> 
> Did you specify a disk directory?
> 
> Aaron
> 
> 
> 
> --- On Tue, 8/11/09, Tim Cronin <Tim.Cronin@autonomy.com>
> wrote:
> 
> > From: Tim Cronin <Tim.Cronin@autonomy.com>
> > Subject: RE: error using block disk cache
> > To: "JCS Users List" <jcs-users@jakarta.apache.org>
> > Date: Tuesday, August 11, 2009, 9:11 AM
> > Here's the cache config:
> > 
> >  
> > 
> >
> ##################################################################
> > 
> > # Default settings
> > 
> > # http://jakarta.apache.org/jcs/index.html
> > 
> > # http://www.jroller.com/page/aspinei/?anchor=jcs_the_good_the_bad
> > 
> >
> ##################################################################
> > 
> > jcs.default=DC
> > 
> >  
> > 
> > # cache compression
> > 
> > #  0  - OFF
> > 
> > #  1  - Best performance
> > 
> > #  9  - Best compression
> > 
> > interwoven.cachemanager.compression=0
> > 
> >  
> > 
> > # mem cache settings
> > 
> >
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
> > es
> > 
> >
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> > .lru.LRUMemoryCache
> > 
> > jcs.default.cacheattributes.UseMemoryShrinker=true
> > 
> >
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=300
> > 
> > jcs.default.cacheattributes.MaxSpoolPerRun=500
> > 
> >
> jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> > 
> >  
> > 
> > # element attributes
> > 
> >
> jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> > 
> > jcs.default.elementattributes.MaxLifeSeconds=-1
> > 
> > jcs.default.elementattributes.IdleTime=1800
> > 
> > jcs.default.elementattributes.IsEternal=false
> > 
> > jcs.default.elementattributes.IsSpool=true
> > 
> > jcs.default.elementattributes.IsRemote=false
> > 
> > jcs.default.elementattributes.IsLateral=false
> > 
> >  
> > 
> >
> ##################################################################
> > 
> > # Page settings
> > 
> >
> ##################################################################
> > 
> > jcs.region.page=DC
> > 
> >  
> > 
> > # mem cache settings
> > 
> > jcs.region.page.cacheattributes.MaxObjects=500
> > 
> >  
> > 
> >
> ##################################################################
> > 
> > # Component settings
> > 
> >
> ##################################################################
> > 
> > jcs.region.component=DC
> > 
> >  
> > 
> > # mem cache settings
> > 
> > jcs.region.component.cacheattributes.MaxObjects=500
> > 
> >  
> > 
> >
> ##################################################################
> > 
> > # disk cache attribs
> > 
> >
> ##################################################################
> > 
> >
> #jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > Factory
> > 
> >
> #jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Index
> > edDiskCacheAttributes
> > 
> > #jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
> > 
> > #jcs.auxiliary.DC.attributes.MaxKeySize=10240
> > 
> >
> #jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=1000
> > 
> > #jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
> > 
> > #jcs.auxiliary.DC.attributes.MaxRecycleBinSize=10000
> > 
> >  
> > 
> >
> ##################################################################
> > 
> > # disk cache attribs [Block disk cache settings]
> > 
> >
> ##################################################################
> > 
> >
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.block.BlockDiskCacheFacto
> > ry
> > 
> >
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.block.BlockDis
> > kCacheAttributes
> > 
> > jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
> > 
> > jcs.auxiliary.DC.attributes.MaxKeySize=10240
> > 
> > jcs.auxiliary.DC.attributes.blockSizeBytes=1024
> > 
> >  
> > 
> > ________________________________
> > 
> > From: Tim Cronin [mailto:Tim.Cronin@autonomy.com]
> > 
> > Sent: Tuesday, August 11, 2009 11:06 AM
> > To: jcs-users@jakarta.apache.org
> > Subject: error using block disk cache
> > 
> >  
> > 
> > We just moved from index to disk, using 1.3.3.3RC
> (see
> > attached
> > configuration file).
> > 
> >  
> > 
> > We are getting the following error:
> > 
> >  
> > 
> > [8/11/09 8:49:49:969 BST] 00000042 SystemOut 
> >    O 08:49:49,968 ERROR
> > [BlockDiskCache] Region [component] Failure updating
> > element, key:
> >
> investor:research-funds/fund-supermarket/factsheet/newlocalfactsheet:Pri
> > mary:en-GB:1239855333385:1:hNvdABDjSIp7U7czi+DCuA==
> old:
> > null
> > 
> > java.lang.ArrayIndexOutOfBoundsException: -128 
> 
> >         at
> >
> org.apache.jcs.auxiliary.disk.block.BlockDisk.write(BlockDisk.java:199)
> > 
> >         at
> >
> org.apache.jcs.auxiliary.disk.block.BlockDiskCache.processUpdate(BlockDi
> > skCache.java:383) 
> >         at
> >
> org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging.updateWithEv
> >
> entLogging(AbstractAuxiliaryCacheEventLogging.java:48)
> > 
> >         at
> >
> org.apache.jcs.auxiliary.disk.AbstractDiskCache.doUpdate(AbstractDiskCac
> > he.java:828) 
> >         at
> >
> org.apache.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePu
> > t(AbstractDiskCache.java:685) 
> >         at
> >
> org.apache.jcs.engine.CacheEventQueue$PutEvent.doRun(CacheEventQueue.jav
> > a:704) 
> >         at
> >
> org.apache.jcs.engine.CacheEventQueue$AbstractCacheEvent.run(CacheEventQ
> > ueue.java:623) 
> >         at
> >
> org.apache.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.jav
> > a:591) 
> > 
> >  
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message