It's not a secret anymore!*
The moose likes Tomcat and the fly likes Not able to catch Exception:java.lang.IllegalStateException 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 » Products » Tomcat
Bookmark "Not able to catch Exception:java.lang.IllegalStateException" Watch "Not able to catch Exception:java.lang.IllegalStateException" New topic

Not able to catch Exception:java.lang.IllegalStateException

Ramani Kadur

Joined: Apr 25, 2011
Posts: 1


I am trying to catch the IllegalStateExeption thrown by tomcat server, catch block is not executed after this exception thrown from tomcat server and also <error-page> in web.xml file also is not read by tomcat.

Any help on how to catch this exception:

Exception initializing page createSession: Too many ac tive org.apache.catalina.session.StandardManager.createSession(
Consider Paul's rocket mass heater.
subject: Not able to catch Exception:java.lang.IllegalStateException
Similar Threads
OutOfMemory error but application continues
preventing write
InvalidClass Exception in javax .crypto. spec.SecretKeySpec
Exceptional Handling Question
Catching JSP NullPointerException