Mantis - Resin
Viewing Issue Advanced Details
704 minor always 01-05-06 09:06 01-11-06 14:06
ferg  
ferg  
urgent  
closed 3.0.17  
fixed  
none    
none 3.0.18  
0000704: timing issues on JSP parsing
(rep by Bryan Davis)

In resin-pro-3.0.16, we are getting a JspParseException while the server is starting and for the first few requests to the server. After that, the exceptions stop. We've seen it several times since we upgraded from 3.0.11, it only appears to happen in a production environment where there are multiple requests being made concurrently upon startup.


com.caucho.jsp.JspParseException
at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:472)
at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:358)
at com.caucho.jsp.JspManager.compile(JspManager.java:213)
at com.caucho.jsp.JspManager.createPage(JspManager.java:157)
at com.caucho.jsp.JspManager.createPage(JspManager.java:137)
at com.caucho.jsp.PageManager.getPage(PageManager.java:235)
at com.caucho.jsp.PageManager.getPage(PageManager.java:153)
at com.caucho.jsp.QServlet.getSubPage(QServlet.java:292)
at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:186)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:123)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:476)
at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:341)
at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:902)
at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:857)

...

Caused by: com.caucho.jsp.JspParseException
at com.caucho.jsp.JspContentHandler.startPrefixMapping(JspContentHandler.java:173)
at com.caucho.xml.XmlParser.parseAttributes(XmlParser.java:690)
at com.caucho.xml.XmlParser.parseElement(XmlParser.java:595)
at com.caucho.xml.XmlParser.parseNode(XmlParser.java:365)
at com.caucho.xml.XmlParser.parseInt(XmlParser.java:240)
at com.caucho.xml.AbstractParser.parse(AbstractParser.java:767)
at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:439) ... 63 more


Notes
(0000680)
ferg   
01-11-06 14:06   
com.caucho.jsp.ParseTagManager needs synchronized methods to handle multiple simultaneous JSP compilations.