tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bram de Kruijff <Bram.deKrui...@gxwebmanager.com>
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.

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

Error:
	SEVERE: Servlet.service() for servlet jsp threw exception
	java.util.ConcurrentModificationException
		at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
		at java.util.AbstractList$Itr.next(AbstractList.java:343)
		at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:305)
		at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
		at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
		at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
		at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
		at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
		at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
		at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
		at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
		at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
		at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
		at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
		at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
		at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
		at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
		at nl.gx.webmanager.servlet.ServerParsedHTMLController.doService(ServerParsedHTMLController.java:192)


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.

	https://glassfish.dev.java.net/issues/show_bug.cgi?id=6409 

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,
Bram

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message