The first error is nothing to worry about.  The cache
is falsely detecting an error.

At the end of the update method in the LRUMemory cache
was this check:

                if ( map.size() != dumpCacheSize() )
                {
                    log.error( "update: After spool,
size mismatch: map.size() = " + map.size() + ", linked
list size = "
                        + dumpCacheSize() );
                } 

It was outside the synchronized block, so it could
return incorect values.  As you see, the two values
are the same in the log, but they must have been
different at the conditional.  I moved the check into
the synchronized block and changed the error to a
warn.


I'm synchronizing all the public methods in the Sorted
pref array.  

This shouldn't effect the performance in any noticable
way.  I'm doing more testing on this change.

Aaron


--- Aaron Smuts <[EMAIL PROTECTED]> wrote:

> Can you send me the entire stack trace and a couple
> full error log entries.  You can send if off the
> list
> if it reveals too much of your code.
> 
> --- "Lane, Brad" <[EMAIL PROTECTED]> wrote:
> 
> > We are getting tons of these errors:
> > 
> >
>
org.apache.jcs.engine.memory.lru.LRUMemoryCache.update(LRUMemoryCache.java:1
> > 75)
> > update: After spool, size mismatch: map.size() =
> > 999, linked list size = 999
> > 
> > And this one:
> > 
> >
>
CacheEventQueue.QProcessor-TREEVIEW_TXEOCT[slf5s.THREAD]
> >  
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache[slf5s.CATEGORY]
> >
>
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doUpdate(IndexedDiskC
> > ache.java:428)[slf5s.LOCATION]
> > Failure updating element, cacheName:
> > TREEVIEW_TXEOCT, key: [GAN:
> > groupId=[groupId=TREEVIEW_TXEOCT, SDM],
> > attrName=1035011~!~SCH01~!~556888][slf5s.MESSAGE]
> > 
> > java.lang.NullPointerException
> > 
> > We're still getting the
> > ArrayIndexOutofBoundsException but we get these
> two
> > a lot more often now. The second one just started
> > appearing. The other two
> > have been around for a while but are more frequent
> > now.
> > 
> > We recently changed our configuration to use the
> > following (we were using
> > the defaults of these before but our data file was
> > getting huge):
> > jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
> > jcs.auxiliary.DC.attributes.MaxKeySize=20000
> >
>
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=20000
> >
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=10000
> > 
> > We are using JCS version 1.2.6.7. Any ideas?
> > 
> > 
> > -----Original Message-----
> > From: Aaron Smuts [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, November 09, 2005 6:55 PM
> > To: JCS Users List
> > Subject: Re:
> > java.lang.ArrayIndexOutOfBoundsException
> > 
> > Please fix any problems you see.  The tests aren't
> > exposing any issues.
> > 
> > Aaron
> > 
> > --- Hanson Char <[EMAIL PROTECTED]> wrote:
> > 
> > > SortedPreferentialArray looks pretty broken.
> Lots
> > of room for 
> > > simplication and bug fixing.
> > > 
> > > Hanson
> > > 
> > > On 11/9/05, Lane, Brad <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > You still haven't fixed the download link on
> the
> > > site and that makes me
> > > > wonder what else have forgotten to tell me?
> > > >
> > > > -----Original Message-----
> > > > From: Smuts, Aaron
> > > [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, October 03, 2005 9:10 AM
> > > > To: JCS Users List
> > > > Subject: RE:
> > > java.lang.ArrayIndexOutOfBoundsException
> > > >
> > > >
> > >
> >
>
http://svn.apache.org/viewcvs.cgi/jakarta/jcs/trunk/tempbuild/
> > > >
> > > > You have an old link. I need to update the
> site
> > > docs. JCS is on SVN now,
> > > > not CVS.
> > > >
> > > > > -----Original Message-----
> > > > > From: Lane, Brad
> > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, October 03, 2005 9:51 AM
> > > > > To: 'JCS Users List'
> > > > > Subject: RE:
> > > java.lang.ArrayIndexOutOfBoundsException
> > > > >
> > > > > What's the "more recent version"? 1.2.6.5
> > > <http://1.2.6.5> is the most
> > > > recent one I see
> > > > at
> > > > >
> > >
> >
>
http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-jcs/tempbuild/
> > > > >
> > > > > -----Original Message-----
> > > > > From: Smuts, Aaron
> > > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, October 03, 2005 8:46 AM
> > > > > To: JCS Users List
> > > > > Subject: RE:
> > > java.lang.ArrayIndexOutOfBoundsException
> > > > >
> > > > > This problem shouldn't be serious, but you
> > > should upgrade to a more
> > > > recent
> > > > > version. I think there was a small bug with
> > the
> > > array in 1.2.6.5<http://1.2.6.5>that
> > > > > Hanson fixed.
> > > > >
> > > > > Aaron
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Lane, Brad
> > > [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Monday, October 03, 2005 8:23 AM
> > > > > > To: 'JCS Users List'
> > > > > > Subject: RE:
> > > java.lang.ArrayIndexOutOfBoundsException
> > > > > >
> > > > > > We're using 1.2.6.5 <http://1.2.6.5>. BTW
> -
> > > We're seeing this on our
> > > > production box
> > > > > which
> > > > > > is
> > > > > > Solaris and not on our dev or integration
> > > boxes, which are Windows,
> > > > if
> > > > > > that matters.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Aaron Smuts
> [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Friday, September 30, 2005 8:47 PM
> > > > > > To: JCS Users List
> > > > > > Subject: Re:
> > > java.lang.ArrayIndexOutOfBoundsException
> > > > > >
> > > > > > Strange. What version of JCS are you
> using?
> > > > > >
> > > > > > The SortedPreferentialArray is used by the
> > > disk cache to keep track
> > > > of
> > > > > > empty spots after removes.
> > > > > >
> > > > > > Aaron
> > > > > >
> > > > > >
> > > > > > --- "Lane, Brad" <[EMAIL PROTECTED]>
> > > wrote:
> > > > > >
> > > > > > > We're getting the following exception
> from
> > > JCS sporadically. Any
> > > > > ideas
> > > > > > > what's causing it?
> > > > > > >
> > > > > > >
> > > > > > > [slf5s.start]29 Sep 2005
> > > 14:17:00,163[slf5s.DATE]
> > > > > > > ERROR[slf5s.PRIORITY] [slf5s.NDC]
> > > > > > >
> > >
> CacheEventQueue.QProcessor-TREEVIEW[slf5s.THREAD]
> > > > > > >
> > > > > > >
> > > > > >
> > >
> >
>
org.apache.jcs.utils.struct.SortedPreferentialArray[slf5s.CATEGORY]
> > > > > > >
> > > > > >
> > > > >
> > > >
> 
=== message truncated ===


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

Reply via email to