You probably have already written something to the "outputStream".
Check out the "<jsp:forward>" tag's reference (i assume this is what you're
using) :
"... if the output is not buffered (page directive with buffer=none) and if
anything has been written to the buffer, using <jsp:forward> results in an
IllegalStateException".
Hope this helps,
Rui
> Hy,
>
> i have a problem with an Error Page. When an Error occures i
> become the
> following message:
>
> Any Ideas ?
>
> Thanks in advance for your help.
>
> Matthias
>
> java.lang.IllegalStateException: Cannot forward as
> OutputStream or Writer
> has already been obtained
> at
> org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDi
> spatcherImpl.j
> ava:130)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextI
> mpl.java:357)
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImp
> l.java:381)
> at
> jsp._0002fjsp_0002fcountryhits_0002ejspcountryhits_jsp_2._jspS
> ervice(_0002fj
> sp_0002fcountryhits_0002ejspcountryhits_jsp_2.java:543)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:174)
> at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> .java:261)
> at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:156)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:338
> )
> at java.lang.Thread.run(Unknown Source)
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets