You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Shapira, Yoav" <Yo...@mpi.com> on 2003/09/02 15:49:40 UTC

RE: ThreadPool misbehavin

Howdy,

>"SEVERE: Unexpected exception" message in the logs from ThreadPool:652.
>I like the comment at line 651 that says, "can never happen, .".  Does

Gotta love that ;)  

>anyone know why this exception would happen?  I know that my webapp
does
>make Thread.interupt() calls, but the tomcat threads should be
protected
>from those, right??  Any help would be much appreciated.

Are you doing Thread.inerrupt() or Thread.currentThread().interrupt() ?
I suspect that's the difference here.  There's no way tomcat threads can
be protected from the former.  You should use the latter in your
applications.  See if that makes the problem go away...

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.


Re[2]: ThreadPool misbehavin

Posted by Anton Tagunov <at...@mail.cnt.ru>.
Hello Yoav, and All!

Since it's a user mail list, plz let one STUPID question,
just want to know "everything in the world" =)

>>"SEVERE: Unexpected exception" message in the logs from ThreadPool:652.
>>I like the comment at line 651 that says, "can never happen, .".  Does

SY> Are you doing Thread.inerrupt() or Thread.currentThread().interrupt() ?
SY> I suspect that's the difference here.  There's no way tomcat threads can
SY> be protected from the former.

Is there a Thread.interrupt() call? In my JDK 1.4.1 I see a static
interrupt() call neither in the docs nor in src.zip

WBR, Anton