Java Swing Tutorials - Herong's Tutorial Examples - Version 4.11, by Dr. Herong Yang
"AWT blocker activation interrupted" Error in JDK 1.7
This section provides a tutorial example on the condition for the 'AWT blocker activation interrupted' error in JDK 1.7.0 and 1.8.0.
I also tested the same program in JDK 1.7.0 and 1.8.0 and got the following results.
Test 1 - Run FrameThreads.java in a command window and wait:
Active thread = main Active thread = AWT-Shutdown Active thread = AWT-Windows Active thread = AWT-EventQueue-0 Interrupting thread = AWT-Shutdown Interrupting thread = AWT-Windows Interrupting thread = AWT-EventQueue-0 AWT blocker activation interrupted: java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:503) at sun.awt.AWTAutoShutdown.activateBlockerThread(AWTAutoShutdown... at sun.awt.AWTAutoShutdown.setToolkitBusy(AWTAutoShutdown.java:2... at sun.awt.AWTAutoShutdown.notifyToolkitThreadBusy(AWTAutoShutdo... at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(WToolkit.java:299) at java.lang.Thread.run(Thread.java:744)
The same error, "AWT blocker activation interrupted", showed up first. Then all 3 frame windows were terminated some time later.
Test 2 - Run FrameThreads.java in a command window, hide 3 frames behind another window and wait. I got the same results as test 1.
This tells me that the AWT package in JDK 1.6 is still having some issues if its threads are interrupted. But it behaves consistently now.
Last update: 2014.
Table of Contents