tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 117] New - IllegalStateException when error in jsp servlet include encountered BugRat Report#124
Date Fri, 09 Mar 2001 22:10:39 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=117

*** shadow/117	Fri Mar  9 14:10:39 2001
--- shadow/117.tmp.7379	Fri Mar  9 14:10:39 2001
***************
*** 0 ****
--- 1,71 ----
+ +============================================================================+
+ | IllegalStateException when error in jsp servlet include encountered BugRat |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 117                         Product: Tomcat 3                |
+ |       Status: UNCONFIRMED                 Version: 3.2.1 Final             |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: High                      Component: Jasper                  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: Justyna.Horwat@eng.sun.com                                   |
+ |  Reported By: camk@channelpoint.com                                        |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ If a jsp page references a servlet after including some other content, and gets a ClassNotFoundException
on that servlet, an IllegalStateException occurs during a buffer reset.
+ This error is very misleading, and doesn't point to the classpath or servlet setup in web.xml
as the cause. It looks like it's an internal error in Tomcat
+ instead of a simple configuration error.
+ 
+ Stacktraces:
+ 
+ Location:/test/foobar.jsp
+ 
+ Internal Servlet Error:
+ 
+ javax.servlet.ServletException: can't reset buffer after writing to client
+         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:448)
+         at _0002ffoobar_0002ejspfoobar_jsp_1._jspService(_0002ffoobar_0002ejspfoobar_jsp_1.java:75)
+         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
+         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
+         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
+         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
+         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
+         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
+         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
+         at org.apache.tomcat.core.Handler.service(Handler.java:263)
+         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
+         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
+         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
+         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
+         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
+         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
+         at java.lang.Thread.run(Thread.java:475)
+ 
+ Root cause: 
+ 
+ java.lang.IllegalStateException: can't reset buffer after writing to client
+         at org.apache.tomcat.core.BufferedServletOutputStream.reset(BufferedServletOutputStream.java:296)
+         at org.apache.tomcat.core.ResponseImpl.resetBuffer(ResponseImpl.java:395)
+         at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:953)
+         at org.apache.tomcat.core.Handler.service(Handler.java:249)
+         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
+         at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:308)
+         at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:407)
+         at _0002ffoobar_0002ejspfoobar_jsp_1._jspService(_0002ffoobar_0002ejspfoobar_jsp_1.java:65)
+         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
+         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
+         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
+         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
+         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
+         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
+         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
+         at org.apache.tomcat.core.Handler.service(Handler.java:263)
+         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
+         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
+         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
+         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
+         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
+         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
+         at java.lang.Thread.run(Thread.java:475)

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


Mime
View raw message