If the collection you are iterating is not synchronized, you can get
this error if you remove or add elements. Try using java.util.Vector as
your collection implementation.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Martes, 02 de Marzo de 2004 03:12 p.m.
To: [EMAIL PROTECTED]
Subject: RE: ConcurrentModificationException


genarally you get this error with lists if you are iterating over list
and remove element/add element to list..

-----Original Message-----
From: Sergei P. Volin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 7:08 PM
To: Struts Users Mailing List
Subject: Re: ConcurrentModificationException



The exception arised by doAfterBody method of IterateTag class, namely
at </logic:iterate>. It means that at least one time the body of
iteration was done. I can guarantee that inside itereator tags -
<logic:iterate>...</logic:iterate> I do not change nor iterator either
session attributes - just reading of session beans. So if smth of that
changes is that only due to some kind of requests interaction. I don't
know how it could be. This is really painful to me since I can't even
think what could it be and the issue persists from time to time. And
again - the application works smoothly when there is no collision of
requests.

----- Original Message ----- 
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 8:49 PM
Subject: Re: ConcurrentModificationException


|
| Any chance that you were iterating through your HttpSession removing 
| attributes?
|
| Sergei P. Volin wrote:
|
| >Greetings!
| >
| >Why did I get this message when sending two concurent requests to the
same page?
| >I'm using:
| >1) RH8.0, Linux 2.4.18 #2 SMP
| >2) java version "1.4.0"
| >Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0) 
| >Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a 
| >(JIT
enabled: jitc))
| >3) Tomcat 5.0.19
| >4) Struts 1.1
| >
| >The same exception I've got on 4.1.24. I really have problems (with 
| >other
symptoms) with concurrent requests. Not often (because server is not
highly
exploited) but persisted. And more often on Linux platform than on
Windows. Why so? Could it be a jvm issue? Or may be Tomcat? Or Struts?
Or mine? Without concurrent requests application works smoothly.
| >
| >Regards,
| >
| >Sergei Volin.
| >
| >HTTP Status 500 -
| >
|
>-----------------------------------------------------------------------
>----
-----
| >
| >type Exception report
| >
| >message
| >
| >description The server encountered an internal error () that 
| >prevented it
from fulfilling this request.
| >
| >exception
| >
| >org.apache.jasper.JasperException
| >
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
58)
| > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
| > 301)
| > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:10
69)
| >
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
oces
sor.java:455)
| >
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
| > org.apache.struts.action.ActionServlet.process(ActionServlet.java:14
| > 82)
| > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)
| >
| >root cause
| >
| >java.util.ConcurrentModificationException
| > 
|
>java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444
)
| > java.util.AbstractList$Itr.next(AbstractList.java:417)
| >
org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:40
1)
| >
org.apache.jsp.admin.sidEditorSurveys_jsp._jspService(sidEditorSurveys_j
sp.j
ava:1214)
| > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
11)
| > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
| > 301)
| > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:10
69)
| >
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
oces
sor.java:455)
| >
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
279)
| > org.apache.struts.action.ActionServlet.process(ActionServlet.java:14
| > 82)
| > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
| > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
| >
com.volin.filters.CompressionFilter.doFilter(CompressionFilter.java:85)
| >
| >note The full stack trace of the root cause is available in the 
| >Tomcat
logs.
| >
| >
|
>-----------------------------------------------------------------------
>----
-----
| >
| >Apache Tomcat/5.0.19
| >
| >
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to