From issues-return-12473-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Mon Mar 02 20:11:09 2009 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 58889 invoked from network); 2 Mar 2009 20:11:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 20:11:09 -0000 Received: (qmail 4328 invoked by uid 500); 2 Mar 2009 20:11:07 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 4293 invoked by uid 500); 2 Mar 2009 20:11:06 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 4284 invoked by uid 99); 2 Mar 2009 20:11:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 12:11:06 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 20:11:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DD3C8234C495 for ; Mon, 2 Mar 2009 12:10:45 -0800 (PST) Message-ID: <1272896106.1236024645904.JavaMail.jira@brutus> Date: Mon, 2 Mar 2009 12:10:45 -0800 (PST) From: "Chris Dunphy (JIRA)" To: issues@struts.apache.org Subject: [jira] Created: (WW-3019) ConcurrentModificationException using s:iterator (intermittent) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ConcurrentModificationException using s:iterator (intermittent) --------------------------------------------------------------- Key: WW-3019 URL: https://issues.apache.org/struts/browse/WW-3019 Project: Struts 2 Issue Type: Bug Affects Versions: 2.1.6 Environment: OS: Linux 2.6.18-92.1.13.el5 #1 SMP Wed Sep 24 19:33:52 EDT 2008 i686 i686 i386 GNU/Linux Glassfish: Version = Sun Java System Application Server 9.1_02 Reporter: Chris Dunphy Attachments: layout_wait.jsp, struts.xml, tiles.xml I have an intermittent problem using the s:iterator tag with the waitAndExec interceptor. Here is the file that I am trying to insert into the tiles layout (viewrequest.jsp): <%@ taglib prefix="s" uri="/struts-tags"%>

This is the layout page I am including the above file in (waitlayout.jsp): <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> <%@ taglib prefix="s" uri="/struts-tags"%> " /> ${application.title}
 
This sometimes crashses with the following stack trace: Caused by: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at org.apache.struts2.components.IteratorComponent.end(IteratorComponent.java:266) at org.apache.struts2.views.jsp.IteratorTag.doAfterBody(IteratorTag.java:69) at org.apache.jsp.jsp.fragments.viewrequest_jsp._jspx_meth_s_iterator_0(viewrequest_jsp.java from :177) at org.apache.jsp.jsp.fragments.viewrequest_jsp._jspx_meth_s_if_0(viewrequest_jsp.java from :108) at org.apache.jsp.jsp.fragments.viewrequest_jsp._jspService(viewrequest_jsp.java from :67) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:855) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:660) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:578) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682) at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103) ... 112 more This doesn't happen consistently, but every third or forth run, which is enough to cause problems for users. I don't suspect it is a tiles issue, but appears to be an issue with iterator based on the stack trace. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.