Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 558461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:08:04+00:00 2026-05-13T12:08:04+00:00

I am simulating ajax file download using iframe, the request goes to tomcat app(servlet)

  • 0

I am simulating ajax file download using iframe, the request goes to tomcat app(servlet) for a file download which is a time consuming process(might take more than 1 min), the issue is that after certain amount of time, either tomcat or the browser client terminates the connection. see Tomcat exception below. who is terminating it, client or server? is there a way I can increase the timeout?

var iframe = document.createElement("iframe");

iframe.src="http://xxxxxxxxx?";
Caused by: ClientAbortException:  java.net.SocketException: Broken pipe
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
        at org.apache.poi.poifs.storage.BigBlock.doWriteData(BigBlock.java:55)
        at org.apache.poi.poifs.storage.DocumentBlock.writeData(DocumentBlock.java:220)
        at org.apache.poi.poifs.storage.BigBlock.writeBlocks(BigBlock.java:86)
        at org.apache.poi.poifs.filesystem.POIFSDocument$BigBlockStore.writeBlocks(POIFSDocument.java:603)
        at org.apache.poi.poifs.filesystem.POIFSDocument.writeBlocks(POIFSDocument.java:275)
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem(POIFSFileSystem.java:390)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:1168)
        at net.sf.jasperreports.engine.export.JRXlsExporter.closeWorkbook(JRXlsExporter.java:199)
        ... 17 more
Caused by: java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:08:04+00:00Added an answer on May 13, 2026 at 12:08 pm

    The exception you are seeing is caused by the client timing out and closing the connection.

    For long running requests, a typical pattern is for the initial request to hit the server to fire off some long running piece of work. You could for example put a message on an MDB to create a pdf. The servlet then sends a 202 Accepted response to the client, with a new URL designed to be polled. The client then needs to continue to poll this new URL until the resource is available. This requires a bit of JavaScript, and some sites will have a progress bar while the client polls to see if the resource is available.

    If you don’t provide feedback to the client, they generally will hit the stop button and refresh the page after a bit of time. This can make matters worse if you attempt a large operation on each of these requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am downloading a dynamic file in my application, simulating ajax using iframes. What
Simulating the web Client/web server interaction in a winform using a webbrowser object in
I am simulating an iPhone-only app in iPad. The binary simulates fine in the
I am using JAGS for simulating some MCMC distributions. I see the support for
I'm simulating a physical object, using a mass spring system. By means of deltas
Using Javascript I'm crudely simulating Brownian motion of particles, but for some reason I
I have a question regarding using primitive shapes and simulating a circle to be
I'm load testing an asp.net app. The load test is simulating 500 user doing
I'm using VMware Workstation 6.0 for simulation of tight clusters of blades in a
My current project for work involves developing a SharePoint 2007 WebPart which will be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.