Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Dave Newton
No no, I mean that even if you're not modifying the map you can get a concurrent modification exception by accessing the map via OGNL's [] notation, just in an tag. Dave --- Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote: > You are right there. And I guess the best way to rid this exception then i

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Randy Burgess
; To: Struts Users Mailing List > Subject: Re: java.util.ConcurrentModificationException at IteratorComponent > > You are right there. And I guess the best way to rid this exception then is > to have the code part in synchronized block, i.e., synchronizing on the list > object itself +

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Eduardo Dela Rosa
You are right there. And I guess the best way to rid this exception then is to have the code part in synchronized block, i.e., synchronizing on the list object itself + get the iterator + invoke either "add" or "remove" inside the block. This will hurt the performance a bit BUT will preserve the in

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Dave Newton
--- Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote: > Also, you must be removing or updating object directly inside your list > object which is why you're getting this error. Try to get a reference to > Iterator from your ArrayList object and invoke "remove" or "add" methods > via the Iterator to get

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Eduardo Dela Rosa
> > Regards, > > Randy Burgess > > Sr. Web Applications Developer > > Nuvox Communications > > > > > > > > > From: Othon Reyes Sanchez <[EMAIL PROTECTED]> > > > Reply-To: Struts Users Mailing List > > > Date: Tue, 26 Feb 2008 1

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Dave Newton
--- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote: > do you know a collection that is thread safe? Look in the JavaDocs: not only are there thread-safe collections but there are utility methods to create them from non-thread-safe collections. As I said in your JIRA post you should post the action

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Othon Reyes Sanchez
ndy Burgess > Sr. Web Applications Developer > Nuvox Communications > > > > > From: Othon Reyes Sanchez <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List > > Date: Tue, 26 Feb 2008 12:39:40 -0600 > > To: > > Subject: java.util.Concurre

Re: java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Randy Burgess
Mailing List > Date: Tue, 26 Feb 2008 12:39:40 -0600 > To: > Subject: java.util.ConcurrentModificationException at IteratorComponent > > I get the following exception when i do some stress test with jmeter. >> java.util.ConcurrentModificationException &

java.util.ConcurrentModificationException at IteratorComponent

2008-02-26 Thread Othon Reyes Sanchez
I get the following exception when i do some stress test with jmeter. > java.util.ConcurrentModificationException > at java.util.AbstractList$Itr.checkForComodification(Unknown Source) > at java.util.AbstractList$Itr.next(Unknown Source) > at org.apache.struts2.components.Iterator