Problem Summary
Lengthy BIRT report with approx 15 datasets runs fine in browser view with 32 pages but when it is exported to excel. It fails with below error message
Caused by: java.io.IOException: Async IO operation failed (1), reason: RC: 10053 An established connection was aborted by the software in your host machine.
Cause
When a BIRT report runs in browser view it doesn't fetch all the records before publishing it on screen because of this report is published properly in browser view.
When report is exported to excel it fetches all the records of report output and writes it to excel before prompting user to save the file. Report export in excel causes below events
- execute whole report logic again
- fetch all the records from memory
- write them to excel using excel emmitter
- prompt user to save file
Whole operation takes a lot of time to complete because of report complexity, this causes report export to time out.
Solution
Below are the list of solutions that can be applied to this
- Increase webserver read/write time out property in websphere
- If first solution doesn't help then try to optimize SQLs in the report design
- If above two doesn't work then try to develop report in some third party tool like excel, connect directly to the database, execute logic, fetch records and publish in report.