Thanks Mike, but I�m using Oracle 9iAS.
        Anyway, I know it uses Apache as webserver, so I�m goint to look for this
mod, if it hasn�t been deleted in Oracle version oh http server.



> -----Mensaje original-----
> De: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 12 de diciembre de 2003 18:37
> Para: 'Struts Users Mailing List'
> Asunto: RE: Cahin actions and GZIP filter
>
>
> Just as a side note, if you are using apache as a web server,
> you could also
> just turn on the mod_deflate or mod_gzip in apache and not
> have to screw
> around the the filter in your servlet engine.
>
> Kmart Tech News
> news://uskihsvtfinsys
>
> The essence of knowledge is, having it, to apply it; not having it, to
> confess your ignorance.
>
> -----Original Message-----
> From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 12, 2003 2:26 AM
> To: 'Struts Users Mailing List'
> Subject: Cahin actions and GZIP filter
>
>
>
> Hello,
>
>   I�m trying to use a filter to compress my application using
> GZIP. I have
> read:
>
> http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p3.html
>
>   and it seems to work except when I chain actions. It uses a
> RequestWrapper
> for not writing the stream to the response. If I call one action which
> executes a forward to another action, I get te exception:
>
> java.io.IOException: Cannot flush a closed output stream
>       at
> es.aranzadi.base.controller.CompressionResponseStream.flush(Co
> mpressionRespo
> nseStream.java:84)
>       at
> es.aranzadi.base.controller.CompressionResponseWrapper.flushBu
> ffer(Compressi
> onResponseWrapper.java:38)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.forward(ServletRequ
> estDispatcher.
> java:244)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.GetParametersRequestDispatcher.forward(GetPa
> rametersReques
> tDispatcher.java:189)
>       at
> org.apache.struts.action.RequestProcessor.doForward(RequestPro
> cessor.java:10
> 69)
>       at
> org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProces
> sor.java:455)
>       at
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:279)
>       at
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1482)
>       at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterC
> hain.java:65)
>       at
> es.aranzadi.base.controller.CompressionFilter.doFilter(Compres
> sionFilter..jav
> a:67)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.invoke(ServletReque
> stDispatcher.j
> ava:560)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.forwardInternal(Ser
> vletRequestDis
> patcher.java:306)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.HttpRequestHandler.processRequest(HttpReques
> tHandler.java:
> 767)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
>       at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
> J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
>       at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Poo
> ledExecutor.ja
> va:803)
>       at java.lang.Thread.run(Thread.java:484)
>
>
>       Why the stream is closed? My application never colses
> the response
> stream. Can anybody help me?
>
>     Jose R.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -----------------------------------------
> This message and its contents (to include attachments) are
> the property of Kmart Corporation (Kmart) and may contain
> confidential and proprietary information. You are hereby
> notified that any disclosure, copying, or distribution of
> this message, or the taking of any action based on
> information contained herein is strictly prohibited.
> Unauthorized use of information contained herein may subject
> you to civil and criminal prosecution and penalties. If you
> are not the intended recipient, you should delete this
> message immediately.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to