JDK-8197560 : test javax/swing/JTree/8003400/Test8003400.java fails
  • Type: Bug
  • Component: client-libs
  • Affected Version: 7,10,11,12
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • Submitted: 2018-02-12
  • Updated: 2019-11-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Duplicate :  
Description
This test always fails on Windows 10 with following message

ava.lang.reflect.InvocationTargetException
	at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
	at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
	at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
	at Test8003400.main(Test8003400.java:95)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.Error: TEST FAILED: 20
	at Test8003400$2.run(Test8003400.java:105)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException
----------rerun:(24/2592)*----------
cd 'D:\\Workspace\\client\\JTwork\\scratch' && \\
PATH='JAVA_HOME\\bin;GRADLE_HOME\\bin;CMAKE_HOME\\bin;D:\\jdk\\jdk-9_181\\fastdebug\\bin;D:\\Workspace\\cmake-3.7.2-win64-x64\\bin;D:\\Workspace\\gradle-3.1\\bin;D:\\jdk-9_181\\fastdebug\\bin;C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\TortoiseHg;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn;C:\\Program Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common Files\\Intel\\WirelessCommon;C:\\Program Files (x86)\\Skype\\Phone;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Users\\panbansa.ORADEV\\AppData\\Local\\Microsoft\\WindowsApps;C:\\cygwin64\\lib\\lapack' \\
SystemDrive=C: \\
SystemRoot='C:\\windows' \\
TEMP='C:\\cygwin64\\tmp' \\
TMP='C:\\cygwin64\\tmp' \\
TZ=Asia/Kolkata \\
windir='C:\\windows' \\
CLASSPATH='D:\\Workspace\\client\\JTwork\\classes\\javax\\swing\\JTree\\8003400\\Test8003400.d;D:\\Workspace\\client\\test\\jdk\\javax\\swing\\JTree\\8003400;D:\\Workspace\\client\\JTwork\\classes\\lib\\testlibrary;D:\\Workspace\\client\\test\\jdk\\lib\\testlibrary;D:\\jtreg\\jtreg_11\\lib\\javatest.jar;D:\\jtreg\\jtreg_11\\lib\\jtreg.jar' \\
    'D:\\Workspace\\client\\build\\windows-x86_64-normal-server-release\\images\\jdk\\bin\\java' \\
        -Dtest.src='D:\\Workspace\\client\\test\\jdk\\javax\\swing\\JTree\\8003400' \\
        -Dtest.src.path='D:\\Workspace\\client\\test\\jdk\\javax\\swing\\JTree\\8003400;D:\\Workspace\\client\\test\\jdk\\lib\\testlibrary' \\
        -Dtest.classes='D:\\Workspace\\client\\JTwork\\classes\\javax\\swing\\JTree\\8003400\\Test8003400.d' \\
        -Dtest.class.path='D:\\Workspace\\client\\JTwork\\classes\\javax\\swing\\JTree\\8003400\\Test8003400.d;D:\\Workspace\\client\\JTwork\\classes\\lib\\testlibrary' \\
        -Dtest.vm.opts= \\
        -Dtest.tool.vm.opts= \\
        -Dtest.compiler.opts= \\
        -Dtest.java.opts= \\
        -Dtest.jdk='D:\\Workspace\\client\\build\\windows-x86_64-normal-server-release\\images\\jdk' \\
        -Dcompile.jdk='D:\\Workspace\\client\\build\\windows-x86_64-normal-server-release\\images\\jdk' \\
        -Dtest.timeout.factor=1.0 \\
        -Dtest.modules=java.desktop \\
        --add-modules java.desktop \\
        com.sun.javatest.regtest.agent.MainWrapper 'D:\\Workspace\\client\\JTwork\\javax\\swing\\JTree\\8003400\\Test8003400.d\\main.1.jta' reverse
result: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException


test result: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException

Comments
This test fails on Ubuntu 18.04 LTS with jdk12. Attached is the jtreg report.
08-11-2018

RULE "javax/swing/JTree/8003400/Test8003400.java" Exception java.awt.HeadlessException: RULE "javax/swing/JTree/8003400/Test8003400.java" Exception java.lang.reflect.InvocationTargetException
25-05-2018

And we have this open bug https://bugs.openjdk.java.net/browse/JDK-8011259 which reports it fails on Solaris + MacOS. Let's call it generic and I'll close that bug out as a dup. of this.
09-05-2018

This also fails repeatably on Ubuntu 17.10 java.lang.reflect.InvocationTargetException at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367) at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342) at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480) at Test8003400.main(Test8003400.java:95) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: java.lang.Error: TEST FAILED: -2 at Test8003400$2.run(Test8003400.java:105) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException JavaTest Message: shutting down test
09-05-2018