https://bz.apache.org/bugzilla/show_bug.cgi?id=69422
Bug ID: 69422
Summary: tomcat 9.0.82 upgrade to tomcat 9.0.96 ncountered a
problem JspTagExceptio
Product: Tomcat 9
Version: 9.0.96
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 39919
--> https://bz.apache.org/bugzilla/attachment.cgi?id=39919&action=edit
jasper compile jsp to java code
Hi:
Recently, the project encountered problems when upgrading the tomcat version
to 9.0.96, But it is normal in version 9.0.82.
The exception stack in 9.0.96, is as follows,
[javax.servlet.jsp.JspTagException]
javax.servlet.jsp.JspTagException
at
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:249)
at
org.apache.jsp.WEB_002dINF.jsp.ctp.common.enumnew.bindEnumTree_jsp._jspx_meth_c_005fset_005f1(bindEnumTree_jsp.java:1018)
at
org.apache.jsp.WEB_002dINF.jsp.ctp.common.enumnew.bindEnumTree_jsp._jspService(bindEnumTree_jsp.java:242)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:376)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:324)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
JSTL jar info:
version=1.2.1
groupId=org.glassfish.web
artifactId=javax.servlet.jsp.jstl
Therefore, we compared the differences between the two versions and found that
the 9.0.96 version code has thread safety issues in concurrent situations. The
code comparison is as follows:
9.0.96 Jasper compile the generated java code, if Tag reuse, In the case of
multiple threads,
Thread A call "reuse" method , Thread B get same Tag object, when call
"doEndTag" method , at this time Thread A call methd "releaseTag" , Thread B
Tag Object reset. catch the JspTagException.
see attachment1.jpg
9.0.82 Jasper compile the generated java code, no problem code
see attachment2.jpg
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]