This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes How to catch StackOverflowError thrown by servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to catch StackOverflowError thrown by servlet?" Watch "How to catch StackOverflowError thrown by servlet?" New topic
Author

How to catch StackOverflowError thrown by servlet?

L Willie
Ranch Hand

Joined: Aug 10, 2008
Posts: 51
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

Joined: Feb 10, 2010
Posts: 71

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


SCJP SCWCD AIX SOA
The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein

sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

I wanted to write that don't use it in production systems.
Got typo mistake
 
wood burning stoves
 
subject: How to catch StackOverflowError thrown by servlet?