tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 3851] - SingleThreadModel ignored
Date Mon, 01 Oct 2001 14:26:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3851

SingleThreadModel ignored





------- Additional Comments From mats.lofkvist@polopoly.com  2001-10-01 07:26 -------
We have found the bug. JspServlet is using an internal wrapper
class JspCountedServlet that do not check for SingleThreadModel.


(Note the diff is backwards, i.e. 'diff new old')
***
jakarta-tomcat-3.2.3-src/src/share/org/apache/jasper/servlet/JspServlet.java       
Mon
Oct  1 15:54:53 2001 
--- tmp/jakarta-tomcat-3.2.3/src/org/apache/jasper/servlet/JspServlet.java     
Tue Jul 17
18:57:50 2001 
*************** 
*** 127,141 **** 
          { 
              try{ 
                  incrementCount(); 
! 
!                 if(servlet instanceof SingleThreadModel) { 
!                     synchronized (servlet) { 
!                       servlet.service(req, res); 
!                     } 
!                 } else { 
!                   servlet.service(req, res); 
!                 } 
! 
              }catch(NullPointerException e){ 
                  throw new JasperException(e); 
              }finally{ 
--- 127,133 ---- 
          { 
              try{ 
                  incrementCount(); 
!                 servlet.service(req, res); 
              }catch(NullPointerException e){ 
                  throw new JasperException(e); 
              }finally{

Mime
View raw message