cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <>
Subject Re: VERY odd exceptions...
Date Tue, 25 May 2004 13:02:50 GMT
On 25 May 2004, at 13:40, Berin Loritsch wrote:
> Pier Fumagalli wrote:
>> On 25 May 2004, at 10:05, Bertrand Delacretaz wrote:
>> Have you noticed, by any chance, a ConcurrentModificationException 
>> somewhere in your tests?
>> I noticed that the ExcaliburComponentManager doesn't correctly 
>> synchronize on its m_componentHandlers hashmap, and that might be the 
>> root of our problems...
> A ConcurrentModificationException happens when you invoke a "put" or
> "remove" operation on the HashMap at the same time you are using an
> Iterator.  The Iterator will throw the ConcurrentModificationException
> because the information that the iterator is going through is no longer
> valid.
> I don't recall there being anything in the ECM dispose method that 
> would
> cause this to happen.  There are a couple things I would check though:
> * Request scoped lookups
> * The BucketMap in Commons Collections
> I would double check ECM as well--I just have to get another release
> done at work before noon.  After that, I will see what I can dig up.

I just posted a patch to BugZilla which fixes the 
ConcurrentModificationException I am observing. Per each page I look up 
few bazillion components (roughly a couple of hundred AFAICS) in few 
bazillion different sitemaps (four).


View raw message