my dog learned polymorphism
The moose likes JSP and the fly likes IllegalStateException close browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "IllegalStateException close browser" Watch "IllegalStateException close browser" New topic

IllegalStateException close browser

peter paul prog

Joined: Jun 19, 2007
Posts: 2

Is there a way for me to know that the cause of throwing this exception is ONLY when the browser is closed? i work on an application that sends email error notifications if it throws an exception. But if it is IllegalStateException and the cause is when the browser is closed, i don't want the app to send the email notification.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63342

"boogy", please check your private messages.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

"zorro francisco",
Please check your private messages.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

This FAQ entry covers the most common causes of IllegalStateExceptions in Java web apps.

Closing the browser before a response has finished usually causes a socket exception not an IllegalStateException. Check the FAQ and make sure you're not doing any of the things listed there.
I agree. Here's the link:
subject: IllegalStateException close browser
It's not a secret anymore!