-
Bug
-
Resolution: Fixed
-
P3
-
5.0
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2178911 | 7 | Dmitry Cherepanov | P3 | Resolved | Fixed | b84 |
JDK-8017380 | 6u65 | Mikhail Cherkasov | P3 | Closed | Fixed | b02 |
JDK-2215252 | 6u60 | Mikhail Cherkasov | P2 | Closed | Fixed | b31 |
JDK-8019332 | 6u51 | Mikhail Cherkasov | P3 | Resolved | Fixed | b31 |
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
A simple "hello world" Swing application (code attached) does not exit when the users logs out or shuts down Windows XP, halting the logout process. The user is presented with the standard windows dialog indicating that a process is not responding and the user is prompted to "End Now?". The Java process never exits, and the user must press either "End now" or "Cancel" buttons logout of Windows.
This problem occurs if the the Swing application is started using "javaw.exe". If the application is started with "java.exe" then it exits normally.
This regression was introduced in 1.5.0_14. We tested the same code (attached) on 1.5.0_13 and the problem does not occur and the program exits cleanly.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
* Compile SwingTest code below
* On Windows run: javaw.exe SwingTest (NOTE: It is important that javaw.exe is used)
* Wait for the Java frame to appear
* Logout of Windows
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The windows logout completes without the "Not Responding" dialog appearing and the user pressing "End Now" or "Cancel".
ACTUAL -
The "Not Responding" dialog will appear and the logout process is halted. The use must press "End Now" or "Cancel" to allow the logout to proceed.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
The standard windows "This program is not responding" dialog.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class SwingTest {
public static void main(String... args) throws Exception {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
JFrame frame = new JFrame("title");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
});
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None known. We had to revert to using older Java version.
Release Regression From : 5.0u13
The above release value was the last known release where this
bug was not reproducible. Since then there has been a regression.
- backported by
-
JDK-2178911 Java application stops Windows logout/shutdown (regression in 1.5.0_14)
- Resolved
-
JDK-8019332 Java application stops Windows logout/shutdown (regression in 1.5.0_14)
- Resolved
-
JDK-2215252 Java application stops Windows logout/shutdown (regression in 1.5.0_14)
- Closed
-
JDK-8017380 Java application stops Windows logout/shutdown (regression in 1.5.0_14)
- Closed
- duplicates
-
JDK-8001170 Regression : Appli. hangs when returns from shutdown confirmation window
- Closed
- relates to
-
JDK-6480378 Backport 5065001, 6259348 and others to 5.0 update release
- Resolved
-
JDK-6513421 Java process does not terminate on closing the Main Application Frame
- Closed