You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Glenn Nielsen <gl...@voyager.apg.more.net> on 2000/08/05 15:27:19 UTC

[BUG] Tomcat 3.3dev CVS snapshot, random JSP exception on first few JSP's

With the latest 3.3dev CVS snapshot I receive the following exception when
one of the first few JSP's are executed.  This is random, sometimes its one
JSP, sometimes another.  And it you reload the JSP that failed, it will usually
work the second time.  I tested this on both a FreeBSD and a Sun Sparc system, and
it exhibited the same behavior.  Possibly a thread pool object initialization/reuse bug?

Regards,

Glenn

Error: 500

Location:/examples/jsp/dates/date.jsp

Internal Servlet Error:

java.lang.IllegalStateException: OutputStream is already being used for this request
        at
org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(HttpServletResponseFacade.java,
Compiled Code)
        at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java, Compiled
Code)
        at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java,
Compiled Code)
        at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java, Compiled
Code)
        at
jsp.dates._0002fjsp_0002fdates_0002fdate_0002ejspdate_jsp_0._jspService(_0002fjsp_0002fdates_0002fdate_0002ejspdate_jsp_0.java,
Compiled Code)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java,
Compiled Code)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled
Code)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java, Compiled
Code)
        at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
        at org.apache.tomcat.facade.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java,
Compiled Code)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled
Code)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled
Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)

 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

Re: [BUG] Tomcat 3.3dev CVS snapshot, random JSP exception on first few JSP's

Posted by Costin Manolache <cm...@yahoo.com>.
I know the bug and how to fix it - but I need some time.

Costin

Glenn Nielsen wrote:

> With the latest 3.3dev CVS snapshot I receive the following exception when
> one of the first few JSP's are executed.  This is random, sometimes its one
> JSP, sometimes another.  And it you reload the JSP that failed, it will usually
> work the second time.  I tested this on both a FreeBSD and a Sun Sparc system, and
> it exhibited the same behavior.  Possibly a thread pool object initialization/reuse bug?
>
> Regards,
>
> Glenn
>
> Error: 500
>
> Location:/examples/jsp/dates/date.jsp
>
> Internal Servlet Error:
>
> java.lang.IllegalStateException: OutputStream is already being used for this request
>         at
> org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(HttpServletResponseFacade.java,
> Compiled Code)
>         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java, Compiled
> Code)
>         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java,
> Compiled Code)
>         at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java, Compiled
> Code)
>         at
> jsp.dates._0002fjsp_0002fdates_0002fdate_0002ejspdate_jsp_0._jspService(_0002fjsp_0002fdates_0002fdate_0002ejspdate_jsp_0.java,
> Compiled Code)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
>         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java,
> Compiled Code)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled
> Code)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
>         at org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java, Compiled
> Code)
>         at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
>         at org.apache.tomcat.facade.ServletWrapper.service(ServletWrapper.java, Compiled
> Code)
>         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
> Code)
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java,
> Compiled Code)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled
> Code)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled
> Code)
>         at java.lang.Thread.run(Thread.java, Compiled Code)
>
>
> ----------------------------------------------------------------------
> Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
> MOREnet System Programming               |  * if iz ina coment.      |
> Missouri Research and Education Network  |  */                       |
> ----------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org