« Return to Thread: ConcurrentModificationException, Cannot begin a new event ... - reproducible

Re: ConcurrentModificationException, Cannot begin a new event ... - reproducible

by Emil Crumhorn :: Rate this Message:

Reply to Author | View in Thread

Hi Holger,

Thanks, but I was hoping to clarify in my post that even if I start passing the correct index after having passed the wrong index just once, the list keeps throwing Concurrent exceptions for every set call on the list even if the index is valid for subsequent calls.

Is this the expected behavior? it seems one should be able to make a "mistake" without getting the list into a permanent state of exception throwing.

Emil

Holger Brands wrote:
Emil,

>
> In any case, one tester reported the exception and I couldn't for the life
> of me reproduce it until I got his full log and saw that the originating
> exception was a replace call with an index that was larger than the event
> list itself;
>
>
> java.lang.IndexOutOfBoundsException: Index: 35, Size: 26
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.set(ArrayList.java:337)
> at ca.odell.glazedlists.BasicEventList.set(BasicEventList.java:188)
>
>
> And following that exception, tons of the ConcurrentModificationExceptions.
>

By passing a wrong index to BasicEventList.set(...) the Glazed Lists
event delivery subsystem is left in an inconsistent state because of the
IndexOutOfBoundsException.
So, to resolve your issue, you'd have to find the place,
where the wrong index originates from.
If you can fix that, those ConcurrentModificationExceptions will disappear, too.

Hope this helps,
Holger

__________________________________________________________________________
Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele
ausländische Netze zum gleichen Preis!
https://produkte.web.de/webde_sms/sms




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glazedlists.dev.java.net
For additional commands, e-mail: users-help@glazedlists.dev.java.net

 « Return to Thread: ConcurrentModificationException, Cannot begin a new event ... - reproducible