JDK-8060009 : SWING and AWT regtests failed on OL 7.0 with sun.awt.SunToolkit$OperationTimedOut exception
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u81,7u60,7u67,7-pool
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2014-10-09
  • Updated: 2015-08-07
  • Resolved: 2014-10-23
Related Reports
Relates :  
Relates :  
Description
Testsuite name: awt
Test(s): java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java
Product tested: JDK 7u71b12, 7u67b34, 7u01b08, 7b148
OS/architecture: Windows , Oracle linux 7.0, Oracle Linux 5.8

Reproducible: Always
Reproducible on machine: stt-140.ru.oracle.com
Also reproducible on machine: stt-141.ru.oracle.com, stt-142.ru.oracle.com, spb23117.ru.oracle.com, spb23297.ru.oracle.com(Windows)

Is it a Regression: No
Failed in JDK 7u71b12, 7u67b34, 7u01b08, 7b148
Test result on the last GAed release for this train: Fail ( JDK 7 b148 )
Test result on FCS: Fail ( 1.7.0 b148, 1.7.0_67 b34, 1.7.0_01 b08)

Is it a platform specific issue: Yes (Failing in OEL 7.0 but passing in OEL 5.8 and windows )

Exception/Error: 
----------System.err:(19/1152)----------
sun.awt.SunToolkit$OperationTimedOut: 20000
	at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2359)
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1509)
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1441)
	at test.java.awt.regtesthelpers.Util.waitForIdle(Util.java:189)
	at ActualFocusedWindowBlockingTest.tuneAndShowWindows(ActualFocusedWindowBlockingTest.java:127)
	at ActualFocusedWindowBlockingTest.init(ActualFocusedWindowBlockingTest.java:72)
	at ActualFocusedWindowBlockingTest.main(ActualFocusedWindowBlockingTest.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: sun.awt.SunToolkit$OperationTimedOut: 20000
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: sun.awt.SunToolkit$OperationTimedOut: 20000

Steps to reproduce :
1. Login into stt-140.ru.oracle.com
2. run : /export/jdk/jdk1.7.0_71b12/bin/java -jar /net/stt-13.ru.oracle.com/export/home0/regression/tools/jtreg/lib/jtreg.jar -timeout:15 -vmoptions:''-Xmixed -server -d64'' -verbose -automatic -jdk:/export/jdk/jdk1.7.0_71b12 -r:/export/home/gtee -w:/export/home/gtee -dir:/net/stt-13.ru.oracle.com/export/home0/regression/workspaces/1.7.0/1.7.0_71b12/j2se/test java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java

Please check if backport is needed for JDK 7 as mentioned in  JDK-7033533
Comments
The fixes for JDK-7033533 and JDK-8051857 were backported to jdk7 and jdk6. Closing this one as dupe.
23-10-2014

JDK-7033533 and JDK-8051857 should be backported to resolve this issue.
09-10-2014