It's not a secret anymore!*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cancelling Download gives a huge stack trace" Watch "Cancelling Download gives a huge stack trace" New topic
Author

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
java.io.IOException: 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: http://aspose.com/file-tools
 
subject: Cancelling Download gives a huge stack trace