Who interrupts my thread?

Posted by Thirler on Stack Overflow See other posts from Stack Overflow or by Thirler
Published on 2010-03-19T08:58:02Z Indexed on 2010/03/19 9:01 UTC
Read the original article Hit count: 318

I understand what an InterruptedException does and why it is thrown. However in my application I get it when waiting for SwingUtilities.invokeAndWait() on a thread that is only known by my application, and my application never class Thread.interrupt() on any thread, also it never passes the reference of the thread on to anyone.

So my question is: Who interrupts my thread?

Is there any way to tell? Is there a reason why the InterruptedException doesn't contain the name of the Thread that requests the interrupt?

I read that it could be a framework or library that does this, we use the following, but I can't think of reason for them to interrupt my thread:

  • Hibernate
  • Spring
  • Log4J
  • Mysql connector

© Stack Overflow or respective owner

Related posts about java

Related posts about interrupt