aspose file tools*
The moose likes Servlets and the fly likes Cancelling Download gives a huge stack trace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cancelling Download gives a huge stack trace" Watch "Cancelling Download gives a huge stack trace" New topic

Cancelling Download gives a huge stack trace

Vin Kris
Ranch Hand

Joined: Jun 17, 2002
Posts: 154
Hi, I have a download servlet that sends compressed data to the user. When the user clicks on the download button and then clicks on the Cancel instead of saving the file or opening it, there is a huge stack trace logged into my stdout file.
[02.09.30 11:34:25:005 MST] feebf9 SRTServletRes X Servlet.Exception:.Error.while.finishing.response Error during native write operation! Status Code: -1
Next stack trace begins with -
[02.09.30 11:34:25:013 MST] feebf9 WebGroup X Servlet ERROR: {0}
"Error while finishing the connection"
javax.servlet.ServletException: Servlet Exception: Error while finishing response
Is there any way to get rid of this stack trace? Am i missing something in setting my response parameters?
I agree. Here's the link:
subject: Cancelling Download gives a huge stack trace
Similar Threads
very strange nullpointer exception in soap call
Problem while downloading file from server
Hibernate Session Factories from org.springframework.orm.hibernate3.LocalSessionFactoryBean
Cancelling a file download - "java.lang.IllegalStateException: getOutputStream() ..."
java.lang.IllegalStateException: getOutputStream() error