RE: ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread James Courtney
al Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 5:16 PM To: Tomcat Developers List Subject: Re: ArrayIndexOutOfBoundsException in ResourceCache.java James Courtney wrote: > /* new code */ > CacheEntry cacheEntry = null; > CacheEntry[] c

RE: ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread James Courtney
Yep, 5.0.28, sorry:) Jamey -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 4:48 PM To: Tomcat Developers List Subject: Re: ArrayIndexOutOfBoundsException in ResourceCache.java if you can create a test case, great, if not, a

Re: ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread Remy Maucherat
James Courtney wrote: /* new code */ CacheEntry cacheEntry = null; CacheEntry[] currentCache = cache; ... int pos = find(currentCache, name); if ((pos != -1) && (name.equals(currentCache[pos].name))) { cacheEntry = currentCache[pos]; } I think I should have coded it that way. Rémy ---

Re: ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread Filip Hanik - Dev Lists
but we'll see:) Thanks again. Jamey -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 3:21 PM To: Tomcat Developers List Subject: Re: ArrayIndexOutOfBoundsException in ResourceCache.java if you are running it embedded, what

RE: ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread James Courtney
Developers List Subject: Re: ArrayIndexOutOfBoundsException in ResourceCache.java if you are running it embedded, what threads are causing the race condition, if it is one of your threads, you can avoid it. otherwise, if you have a test case for us, submit it to bugzilla, and we will be happy to c

Re: ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread Filip Hanik - Dev Lists
if you are running it embedded, what threads are causing the race condition, if it is one of your threads, you can avoid it. otherwise, if you have a test case for us, submit it to bugzilla, and we will be happy to consider it for the next 5.0.x release Filip James Courtney wrote: I'm pretty

ArrayIndexOutOfBoundsException in ResourceCache.java

2006-08-01 Thread James Courtney
I'm pretty regularly seeing the following error in my embedded Tomcat (5.0.28) connector. It appears to occur as a result of one thread entering the ResourceCache.lookup(String name) method and getting the index of an element in the cache using the find method. Before this thread can access the e