Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6660258

Java application stops Windows logout/shutdown (regression in 1.5.0_14)

    Details

    • Subcomponent:
    • Introduced In Build:
      b02
    • Introduced In Version:
      7
    • Resolved In Build:
      b01
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asaha Abhijit Saha
                  Reporter:
                  ndcosta Nelson Dcosta
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: