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

java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed."

XMLWordPrintable

    • b15
    • x86_64
    • windows

        The following test failed in the JDK19 CI:

        java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(5/208)----------
        command: main NonfocusableOwnerTest
        reason: User specified action: run main NonfocusableOwnerTest
        Mode: othervm
        Additional options from @modules: --add-modules java.desktop
        elapsed time (seconds): 2.09
        ----------configuration:(3/43)----------
        Boot Layer
          add modules: java.desktop

        ----------System.out:(50/5177)----------
        * * * STAGE 1 * * *
        Window owner: java.awt.Frame[Frame-owner,100,0,100x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
        java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on Frame-owner
        java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 1st child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Frame-owner
        * * * STAGE 2 * * *
        Window nowner: java.awt.Frame[Frame-owner,100,0,136x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
        java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Frame-owner
        * * * STAGE 3 * * *
        Widow owner: java.awt.Frame[Frame-owner,100,0,136x100,invalid,hidden,layout=java.awt.BorderLayout,title=Frame,resizable,normal]
        java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=null,oldState=0,newState=0] on Frame-owner
        sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on Frame-owner
        sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,layout=java.awt.BorderLayout],oldState=0,newState=0] on Frame-owner
        sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[Frame-owner,100,0,136x100,layout=java.awt.BorderLayout,title=Frame,resizable,normal],oldState=0,newState=0] on 2nd child
        java.awt.event.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on button0
        java.awt.event.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on button0
        sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[1st child,100,300,100x100,invalid,hidden,layout=java.awt.BorderLayout],oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,invalid,hidden,layout=java.awt.BorderLayout],oldState=0,newState=0] on Frame-owner
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
        java.awt.event.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on Frame-owner
        java.awt.event.FocusEvent[FOCUS_LOST,permanent,opposite=null,cause=CLEAR_GLOBAL_FOCUS_OWNER] on Frame-owner
        sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=null,oldState=0,newState=0] on Frame-owner
        java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=null,oldState=0,newState=0] on Frame-owner
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Frame-owner
        * * * STAGE 1 * * *
        Window owner: java.awt.Dialog[Dialog-owner,100,0,100x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
        java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on Dialog-owner
        java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 1st child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
        * * * STAGE 2 * * *
        Window nowner: java.awt.Dialog[Dialog-owner,100,0,136x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
        java.awt.event.WindowEvent[WINDOW_OPENED,opposite=null,oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on 1st child
        * * * STAGE 3 * * *
        Widow owner: java.awt.Dialog[Dialog-owner,100,0,136x100,invalid,hidden,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
        java.awt.event.WindowEvent[WINDOW_CLOSED,opposite=null,oldState=0,newState=0] on Dialog-owner
        java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=null,oldState=0,newState=0] on Dialog-owner
        sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on Dialog-owner
        sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,layout=java.awt.BorderLayout],oldState=0,newState=0] on Dialog-owner
        sun.awt.TimedWindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Dialog[Dialog-owner,100,0,136x100,invalid,layout=java.awt.BorderLayout,MODELESS,title=Dialog],oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Dialog[Dialog-owner,100,0,136x100,invalid,layout=java.awt.BorderLayout,MODELESS,title=Dialog],oldState=0,newState=0] on 2nd child
        java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Window[2nd child,100,500,100x100,layout=java.awt.BorderLayout],oldState=0,newState=0] on Dialog-owner
        java.awt.event.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on Dialog-owner
        ----------System.err:(15/928)----------
        focus owner: java.awt.Button[button0,0,0,100x100,label=button]
        focus owner: java.awt.Dialog[Dialog-owner,100,0,136x100,invalid,layout=java.awt.BorderLayout,MODELESS,title=Dialog]
        java.lang.RuntimeException: Test failed.
        at NonfocusableOwnerTest.test3(NonfocusableOwnerTest.java:150)
        at NonfocusableOwnerTest.start(NonfocusableOwnerTest.java:85)
        at NonfocusableOwnerTest.main(NonfocusableOwnerTest.java:48)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed.
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed.
        ----------rerun:(47/5363)*----------

              achung Alisen Chung
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: