java.lang.InterruptedException (sleep interrupted)
A blocked thread (sleep, wait, join, queue take) was interrupted by another thread.
Seen on:
Java
Meaning
Interruption is a cooperative cancellation signal (executor shutdown, Future.cancel). Swallowing it hides shutdown requests.
Common causes
- Executor/application shutting down
- Future.cancel(true)
- Test framework interrupting threads
⚡ Quick fix
- Restore the flag: Thread.currentThread().interrupt() and exit the loop
- Don’t catch and ignore it
Detailed fix by platform
Java
catch (InterruptedException e) { Thread.currentThread().interrupt(); return; }
How to diagnose
- Who — Which component interrupted the thread?
- Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026