List
Subject: RE: java.util.ConcurrentModificationException at
org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)
Thats a good solution, I will use that, thanks. I am a
bit confused as to why this is happening because the
array is being populated in the form bean, and than
the jsp
: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 11:26 AM
To: 'Struts Users Mailing List'
Subject: RE: java.util.ConcurrentModificationException at
org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)
I saw this error a lot before if I didn't use an iterator
at
org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)
I am not using 2 threads, I was just saying than in
case of two threds being used, this Exception will be
thrown. I can find whats the problem in my casei got
this:
html:select property=colorSelected
html:options property=colorOptions
name
: Struts Users Mailing List
Onderwerp: Re:
java.util.ConcurrentModificationException at
org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)
I am not using 2 threads, I was just saying than in
case of two threds being used, this Exception will
be
thrown. I can find whats
I am not using 2 threads, I was just saying than in
case of two threds being used, this Exception will be
thrown. I can find whats the problem in my casei got
this:
html:select property=colorSelected
html:options property=colorOptions
name=orderEntryForm/
/html:select
where
Hi I asked similar question and yet did not get an
answer, I dont know why its happening in my case,
however, I know that ConcurrentModificationException
is thrown when a thread is trying to modify a
collection while another thread is still iterating it.
Dont know if it helps you or not sorry.
You don't need two threads.
If you are using an iterator and are removing from the
collection you are iterating over - you will get this
error.
If you are using EJB CMP then you need to know how
relationships work because it is easy to run into
this.
sandeep
--- Fedor Smirnoff [EMAIL PROTECTED]
Do you have the ActionErrors instance bound to an instance variable in the class:
public class MyAction extends Action {
..
private ActionMessages messages;
}
Struts treats each Action class as a singleton - there is only one instance ever
created. As such an instance variable is
This is occuring from inside an ActionForm validate
method, not an Action class.
m
--- Richard J. Duncan [EMAIL PROTECTED] wrote:
Do you have the ActionErrors instance bound to an
instance variable in the class:
public class MyAction extends Action {
..
private ActionMessages
9 matches
Mail list logo