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
; 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 +
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
--- 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
> > 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
--- 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
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
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
&
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
9 matches
Mail list logo