47 AM
To: Tapestry users
Subject: java.util.ConcurrentModificationException
Hey all
I keep getting this java.util.ConcurrentModificationException when I try
to add rows to a table. The below code won't
work, but if I remove the For loop and just add "result.add(new
ConversationsPlaceHo
te objects stored in the list, but do not change list's state
while traversing the iterator.
Adam
On 3/20/06, Nima Boustanian <[EMAIL PROTECTED]> wrote:
> Hey all
>
> I keep getting this java.util.ConcurrentModificationException when I try
> to add rows to a table. The below
Take a look at the javadoc for ConncurrentModificationException.
When you're iterating a collection, you cannot add/remove from that
collection.
On 3/20/06, Nima Boustanian <[EMAIL PROTECTED]> wrote:
>
> Hey all
>
> I keep getting this java.util.ConcurrentModificationEx
Hey all
I keep getting this java.util.ConcurrentModificationException when I try
to add rows to a table. The below code won't
work, but if I remove the For loop and just add "result.add(new
ConversationsPlaceHolderTable("test")); it will output
"test" as the firs
ED]
> Subject: Re: java.util.ConcurrentModificationException
>
>
> Hi,
>
> You have a Foreach that iterates thru your collection. The remove
> listener is invoked inside the Foreach. You will want to change your
> loop so it operates on a clone of the data, like so:
>
gt; Hi, Kent,
>
> Thanks for the reply. (Comments below)
>
> > > I have a table in which I use a Foreach to add rows.
> > >
> > > When I click on one of the buttons in the table, I am getting a
> > > java.util.ConcurrentModificationException (full stack trace
Hi, Kent,
Thanks for the reply. (Comments below)
> > I have a table in which I use a Foreach to add rows.
> >
> > When I click on one of the buttons in the table, I am getting a
> > java.util.ConcurrentModificationException (full stack trace below).
>
> The collect
David Leangen canada.com> writes:
>
> I have a table in which I use a Foreach to add rows.
>
> When I click on one of the buttons in the table, I am getting a
> java.util.ConcurrentModificationException (full stack trace below).
The collection is being modified while an ite
I have a table in which I use a Foreach to add rows.
When I click on one of the buttons in the table, I am getting a
java.util.ConcurrentModificationException (full stack trace below).
Any ideas why this would happen?
Thanks!
Dave
Stack Trace:
*
java.util.AbstractList