RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-23 Thread Yansheng Lin
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

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-23 Thread Hookom, Jacob
: 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

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-22 Thread Johan Kumps
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

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-22 Thread Fedor Smirnoff
: 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

Re: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-21 Thread Fedor Smirnoff
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

Re: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-20 Thread Fedor Smirnoff
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.

Re: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-20 Thread Sandeep Takhar
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]

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-20 Thread Richard J. Duncan
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

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-20 Thread Michael Ruppin
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