On Fri, 5 Jul 2002, Arnaud HERITIER wrote:
> Date: Fri, 5 Jul 2002 16:22:18 +0200
> From: Arnaud HERITIER <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
> Subject: java.lang.IllegalStateException
>
> Hi guys !!
>
> I'm using TC 4.0.1 and receive the following error.
>
> Is someone have an idea on which problem can occurs ???
>
Usually, an IllegalStateException like this happens when you try to call
response.getOutputStream() (normally used for binary output) and
response.getWriter() (which is what a JSP page always ends up calling) on
the same response. This is not allowed by the servlet spec, because you
cannot mix text and binary output on a single response.
> Thx
>
> Arno.
Craig
>
> java.lang.IllegalStateException
> at
> org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1
> 59)
> at
> org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
> at
> org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
> at
> org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
> at
> org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:176)
> at
> org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFacto
> ryImpl.java:198)
> at
> org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.j
> ava:193)
> at org.apache.jsp.menu$jsp._jspService(menu$jsp.java:806)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:202)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:679)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
> er.java:431)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
> .java:355)
> at
> org.apache.struts.action.ActionServlet.processForward(ActionServlet.java:184
> 8)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1569)
> at
> com.sopra.unedic.pfe.manager.web.servlet.controller.PFEActionServlet.process
> (PFEActionServlet.java:173)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
> at java.lang.Thread.run(Unknown Source)
> Arnaud HERITIER
> EAI Consulting
> Sopra Group
> Tél. : +33 (0)1 53 33 44 74
> email : [EMAIL PROTECTED]
>
> Ce message est exclusivement destiné aux personnes dont le nom figure
> ci-dessus. Il peut contenir des informations confidentielles dont la
> divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où
> vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse
> e-mail ci-dessus et de détruire toute copie.
>
> This message may contain confidential and proprietary material for the
> sole use of the intended recipient. Any review or distribution by others is
> strictly prohibited. If you are not the intended recipient, please contact
> the sender and delete all copies.
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>