jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Cheng" <keithch...@maxistech.com>
Subject java.lang.IllegalStateException: getOutputStream() has already been called for this response
Date Fri, 23 Nov 2001 05:20:40 GMT
Dear all,

	Finally, I got my taglib test cases running but I got the following error
after the test:

[EmbeddedCatalinaServiceSX] StandardWrapperValve[JspRedirector]:
Servlet.service() for servlet JspRedirector threw excep
tion
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
        at org.apache.catalina.connector.ResponseBase.getWriter(Unknown
Source)
        at org.apache.catalina.connector.ResponseFacade.getWriter(Unknown
Source)
        at org.apache.jasper.runtime.JspWriterImpl.initOut(Unknown Source)
        at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown
Source)
        at org.apache.jasper.runtime.JspWriterImpl.flush(Unknown Source)
        at org.apache.jasper.runtime.PageContextImpl.release(Unknown Source)
        at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(Unknown
Source)
        at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(Unknown Source)
        at
org.apache.jsp.jspRedirector$jsp._jspService(jspRedirector$jsp.java:91)
        at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
        at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
        at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.connector.http.HttpProcessor.process(Unknown
Source)
        at org.apache.catalina.connector.http.HttpProcessor.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:484)

	The tests finished successfully and anyone know what is this exception for?
I am running tomcat 4.0 + JBoss 2.4.3.

	Thanks in advance.

	In addition, many people got the java.io.StreamCorruptedException error. I
had this problem before too and my problem is that I put the context path in
JspRedirector servlet mapping like this "/test/jspRedirector.jsp" since the
example says: "/somewhere/jspRedirector.jsp".  However, the "/test" should
be removed since I put the jspRedirector.jsp in the root of my context path.
I suggest that the example should omit the "/somewhere" since it is a bit
confusing, isn't it?

---- Keith Cheng
---  keithcheng@maxistech.com
--   http://www.maxistech.com/


--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message