tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram de Kruijff <>
Subject Jasper compiler throws ConcurrentModificationException
Date Wed, 29 Jul 2009 11:15:11 GMT
Hi all,

I am seeing a ConcurrentModificationException in the jasper compiler every now and then (v
6.0.18). Can not reproduce it on the spot (as it is probably a concurrency issue), but it
always seems to occur when dispatching from my servlet to a jsp file.

        RequestDispatcher requestDispatcher = request.getRequestDispatcher(include);
        requestDispatcher.include(request, response);

	SEVERE: Servlet.service() for servlet jsp threw exception
		at java.util.AbstractList$Itr.checkForComodification(
		at java.util.AbstractList$
		at org.apache.jasper.compiler.JspConfig.findJspProperty(
		at org.apache.jasper.compiler.Compiler.generateJava(
		at org.apache.jasper.compiler.Compiler.compile(
		at org.apache.jasper.compiler.Compiler.compile(
		at org.apache.jasper.compiler.Compiler.compile(
		at org.apache.jasper.JspCompilationContext.compile(
		at org.apache.jasper.servlet.JspServletWrapper.service(
		at org.apache.jasper.servlet.JspServlet.serviceJspFile(
		at org.apache.jasper.servlet.JspServlet.service(
		at javax.servlet.http.HttpServlet.service(
		at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
		at org.apache.catalina.core.ApplicationFilterChain.doFilter(
		at org.apache.catalina.core.ApplicationDispatcher.invoke(
		at org.apache.catalina.core.ApplicationDispatcher.doInclude(
		at org.apache.catalina.core.ApplicationDispatcher.include(
		at nl.gx.webmanager.servlet.ServerParsedHTMLController.doService(

While google-ing and looking at tomcat svn I did not find anything that resembles this. However
I did find an issue over at Glassfish and they seem to have resolved it by moving the JspConfig
 init() method to the constructor. 

Again looking at tomcat code in svn it looks like such meassures have not been taken over
there, but offcourse I can be mistaking :) Is there something I am doing wrong or can do different
to avoid this problem? Any tips would be much appriciated!

Best Regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message