Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IllegalStateException close browser

 
peter paul prog
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"boogy", please check your private messages.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"zorro francisco",
Please check your private messages.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic