File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

IllegalStateException close browser

peter paul prog
Greenhorn

Joined: Jun 19, 2007
Posts: 2
hi,

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.

thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

"boogy", please check your private messages.


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

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
Sheriff

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: http://aspose.com/file-tools
 
subject: IllegalStateException close browser