This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
very strange nullpointer exception in soap call
Hibernate Session Factories from org.springframework.orm.hibernate3.LocalSessionFactoryBean
Problem while downloading file from server
java.lang.IllegalStateException: getOutputStream() error
Cancelling a file download - "java.lang.IllegalStateException: getOutputStream() ..."