aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Problem downloading a file from a JEE application running on a Tomcat Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Problem downloading a file from a JEE application running on a Tomcat Server" Watch "Problem downloading a file from a JEE application running on a Tomcat Server" New topic
Author

Problem downloading a file from a JEE application running on a Tomcat Server

Lance Greenberg
Greenhorn

Joined: Jan 05, 2010
Posts: 1
I am trying to download an Excel file from a Tomcat 7 server. Everything worked fine until about 2 weeks ago. At that time, the download started hanging in IE (IE11). The download also worked and still works in Chrome. After a timeout, I get the following exception:

ClientAbortException: java.io.IOException
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:371)
at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:333)
at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101)
at com.firstmanhattan.admin.model.PoiSpreadSheet.sendFile(PoiSpreadSheet.java:179)
at com.firstmanhattan.admin.actions.BondDurationAction.perform(BondDurationAction.java:200)
at com.firstmanhattan.servlet.FMCController.doPost(FMCController.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2430)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2419)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException
at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:205)
at org.apache.coyote.http11.InternalAprOutputBuffer.flush(InternalAprOutputBuffer.java:109)
at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:805)
at org.apache.coyote.Response.action(Response.java:174)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:366)
... 24 more

The code is as follows:



On Chrome, the write loop prints 26 reads of 4096 bytes and one of 2048 (totals 108544, the correct file size). On IE, the loop prints 9 reads of 4096 bytes and then hangs. It eventually times out throwing the above exception.

Any ideas?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem downloading a file from a JEE application running on a Tomcat Server