Duplicate :
|
|
Relates :
|
|
Relates :
|
FULL PRODUCT VERSION : 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.
|