• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cancelling Download gives a huge stack trace

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic