hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: ArrayIndexOutOfBoundsException in CookieSpecBase
Date Sat, 04 Nov 2006 11:53:26 GMT
On Sat, 2006-11-04 at 10:25 +0100, Ortwin Gl├╝ck wrote:
> 
> Oleg Kalnichevski wrote:
> > Tim,
> > 
> > I do not see how possibly HttpClient could be causing LinkedList#toArray
> > to throw an ArrayIndexOutOfBoundsException exception in this case. 
> > 
> > In this particular case I am more inclined to suspect a bug in Sun's
> > Java Runtime Library. If you knew what cookies HttpClient was trying to
> > match against which target host, I might be able to reproduce the
> > problem locally.
> > 
> > Oleg
> 
> It could be a concurrency problem. Call toArray while modifiying the
> list and it may happen?
> 
> Just an idea
> 

Odi,

A race condition would have been the most likely explanation, but the
LinkedList instance in question is method local

Oleg


> Odi
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 


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


Mime
View raw message