File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to catch StackOverflowError thrown by servlet?
 
Similar Threads
Dispatching ResultSet object from Servlet to JSP
Catching JSP NullPointerException
problem in throwing Exception from Bean
Error states "This method must return a result of type List"
Servlet filter exception handling