Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807581, 1 year ago
Cannot flush a closed output stream
via pjl-comp-filter by atabotix
, 1 year ago
via Google Groups by Andreas Jaeger, 2 months ago
Cannot flush a closed output stream
java.io.IOException: The stream has been closed	at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:191)	at com.planetj.servlet.filter.compression.StatsOutputStream.flush(StatsOutputStream.java:45)	at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)	at com.planetj.servlet.filter.compression.StatsOutputStream.flush(StatsOutputStream.java:45)	at com.planetj.servlet.filter.compression.ThresholdOutputStream.flush(ThresholdOutputStream.java:106)	at com.planetj.servlet.filter.compression.CompressingServletOutputStream.flush(CompressingServletOutputStream.java:71)	at com.planetj.servlet.filter.compression.CompressingHttpServletResponse.flushBuffer(CompressingHttpServletResponse.java:132)	at com.planetj.servlet.filter.compression.CompressingFilter.handleDoFilter(CompressingFilter.java:212)	at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:194)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:166)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)	at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:409)	at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:528)	at java.lang.Thread.run(Thread.java:534)