JDK-8132469 : The case failed automatically when operating the fileChooser demo.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u60,9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-07-28
  • Updated: 2015-07-28
  • Resolved: 2015-07-28
Related Reports
Duplicate :  
Description
 Testsuite name:Swing Function
Test name(s):Swing_SwingNode/Manual/SwingSet2Demo
Product(s) tested:jdk8u60b25 64bit
OS/architecture: mac10.10-x64(Processor:2.4 GHz Intel Core 2 Duo ,Memory:4 GB 1067 MHz DDR3)

Error log file:http://scaaa008.us.oracle.com:9502/runs/01035/1035867.ManualSubmit/1035867.ManualSubmit-1/ResultDir/SwingSet2Demo/SwingSet2Demo.log

Reproducible: Always
Reproducible on machine:Evergreen-machine

It is regression:Yes
[If Regression] Regression introduced in release/build:JDK8u60b20(64bit) Failed,but JDK8u60b19(64bit) on same platform Passed.
Test result on the last GAed release for this train:JDK8u51b31(64bit) on same platform Passed.
[if Fail]Test result on FCS:

Is it a platform specific issue:
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: 
[If new configuration testing] Issue specific to execution mode or OS/browser version:

Steps to reproduce:
1.Clone the swing functional workspace
1a. hg clone http://sqe-hg.us.oracle.com/hg/index.cgi/testbase/javase/functional/8 /var/root/workspace/swing-fun/8
1b. cd /var/root/workspace/swing-fun/8
1c. hg clone http://sqe-hg.us.oracle.com/hg/index.cgi/testbase/javase/functional/8/swing
2.Install stable bundle JDK8u40b11 from http://jre.us.oracle.com/java/re/jdk/8u40/promoted/all/b11/bundles/macosx-x64/jdk-8u40-ea-macosx-x64.dmg to /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk
3.Install base bundle JDK8u60b24 from http://jre.us.oracle.com/java/re/jdk/8u60/promoted/all/b24/bundles/macosx-x86_64/jdk-8u60-ea-macosx-x64.dmg to /Library/Java/JavaVirtualMachines/jdk1.8.0_60b24.jdk
4. Install test bundle JDK8u60b25 from http://jre.us.oracle.com/java/re/jdk/8u60/promoted/all/b25/bundles/macosx-x86_64/jdk-8u60-ea-macosx-x64.dmg to /Library/Java/JavaVirtualMachines/jdk1.8.0_60b25.jdk
5. Download the ute from http://sqeweb.us.oracle.com/net/stt-13.ru.oracle.com/export/home0/ute-dev/bin/ute to /var/root/workspace/swing-fun/ute
6. Create result_dir at /var/root/workspace/swing-fun/results
7.Create the testlist in the /var/root/workspace/swing-fun/8/swing/testlist/testlist.Swing_All_Manual as:
Swing_SwingNode/Manual/SwingSet2Demo execute_script "manual"
8. Modify the test_swing.sh as:
/private/var/root/workspace/swing-fun/ute/ute run -harness tonga -env TONGA_MAIN_CLASS=Tonga -env KEYWORDS=manual -env BASEBUILD="/Library/Java/JavaVirtualMachines/jdk1.8.0_60b24.jdk/Contents/Home" -env STABLE_JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home" -component swing -jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_60b25.jdk/Contents/Home" -testlist /private/var/root/workspace/swing-fun/8/swing/testlist/testlist.Swing_All_Manual -testbase /private/var/root/workspace/swing-fun/8/swing -results //private/var/root/workspace/swing-fun/results
9. Go to /var/root/workspace/swing-fun, and run the command : bash test_swing.sh
10.Run the test Swing_SwingNode/Manual/SwingSet2Demo

Actual behavior:
1.When the case launching,click "Run test" button,The SwingSet2 dialog shows.
2.Under FileChooser Demo,click "Show Plain JFileChooser" button to open a dialog, operate the dialog,the case fail automatically.refer to Demo.jpg.

verify:
JDK8u60b09(64bit) on same platform Passed,
JDK8u60b18(64bit) on same platform Passed,
JDK8u60b19(64bit) on same platform Passed,
JDK8u60b24(64bit) on same platform Failed. 
Comments
Does it work on jdk9?
28-07-2015

Sergey, is it dup of JDK-8132382 ?
28-07-2015

JDK crashed with output above on open and cancel Show Plain JFileChooser dialog
28-07-2015

Java Crashed [2015-07-27T09:05:05.42] 2015-07-27 17:05:05.423 java[5315:129414] -[NSApplication postRunnableEvent:]: unrecognized selector sent to instance 0x7f9240d88ed0 [2015-07-27T09:05:05.51] 2015-07-27 17:05:05.507 java[5315:129414] Apple AWT Internal Exception: -[NSApplication postRunnableEvent:]: unrecognized selector sent to instance 0x7f9240d88ed0 [2015-07-27T09:05:05.51] 2015-07-27 17:05:05.507 java[5315:129414] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication postRunnableEvent:]: unrecognized selector sent to instance 0x7f9240d88ed0' [2015-07-27T09:05:05.51] *** First throw call stack: [2015-07-27T09:05:05.51] ( [2015-07-27T09:05:05.51] 0 CoreFoundation 0x00007fff9073803c __exceptionPreprocess + 172 [2015-07-27T09:05:05.51] 1 libobjc.A.dylib 0x00007fff9222d76e objc_exception_throw + 43 [2015-07-27T09:05:05.51] 2 CoreFoundation 0x00007fff9073b0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 [2015-07-27T09:05:05.51] 3 CoreFoundation 0x00007fff90680e24 ___forwarding___ + 1028 [2015-07-27T09:05:05.51] 4 CoreFoundation 0x00007fff90680998 _CF_forwarding_prep_0 + 120 [2015-07-27T09:05:05.51] 5 libawt_lwawt.dylib 0x000000012452dc82 Java_sun_lwawt_macosx_CFRetainedResource_nativeCFRelease + 103 [2015-07-27T09:05:05.51] 6 ??? 0x000000010609f4d4 0x0 + 4396283092 [2015-07-27T09:05:05.51] 7 ??? 0x000000010609398d 0x0 + 4396235149 [2015-07-27T09:05:05.51] ) [2015-07-27T09:05:05.51] libc++abi.dylib: terminating with uncaught exception of type NSException [2015-07-27T09:05:16.19] //private/var/root/workspace/swing/results/ResultDir/SwingSet2Demo/SwingSet2Demo.ksh: line 30: 5315 Abort trap: 6 ${JAVA_HOME}/bin/java -cp SwingSet2${PS}. SwingSet2Demo
28-07-2015

RULE Swing_SwingNode/Manual/SwingSet2Demo any any
28-07-2015