• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cancelling Download gives a huge stack trace  RSS feed

Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!