• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to catch StackOverflowError thrown by servlet?

 
L Willie
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet thrown error when huge data ready to print as pdf.
small size of data is working properly.
I try to catch error and display meaningful message to end user
 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check this.

http://stackoverflow.com/questions/951635/how-to-handle-stackoverflowerror-in-java

Personally, I think catching stack-overflow error could be only useful for debugging. Don;t use in love systems. Anyways it is not supposed to be caught and therefore defined as Error.

Sourabh
 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to write that don't use it in production systems.
Got typo mistake
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic