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

After removing the system tray manually,the test is failed automatically with java.lang.UnsupportedOperationException

XMLWordPrintable

    • x86_64
    • linux

      Testsuite name:Awt Regression
      Test name:closed/java/awt/TrayIcon/RemoveSystemTrayTest/RemoveSystemTrayTest
      Product tested:JDK 7u71 b12(64bit)
      OS/architecture:OEL7.0-UEK-x64

      Error log file:http://scaaa008.us.oracle.com:9502/runs%2F582754.ManualSubmit-1/workDir/closed/java/awt/TrayIcon/RemoveSystemTrayTest/RemoveSystemTrayTest.jtr
       
      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression: NO (JDK7u71b11,7u71b01/OEL7.0-UEK-x64:Fail)
      [If Regression] Regression introduced in release/build:
      Test result on the last GAed release for this train: Fail(JDK7u65b19/OEL7.0-UEK-X64:Fail)
       [if Fail] Test result on FCS: Fail(JDK7u65b20/OEL7.0-UEK-X64:Fail)

      Is it a platform specific issue: Yes(JDK7u71b08/win7-sp1-x86:Pass;
                                                            JDK7u71b12/OEL6.4-UEK-x64:Pass)
       [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: Yes
       [If new configuration testing] Issue specific to execution mode or OS/browser version:OEL7.0 UEK x64
       

      Steps to reproduce:
       1.Download regression workspace from http://jre.us.oracle.com/java/re/jdk/7u71/promoted/fcs/b12/ws/jdk/test/ to /regression
        2. Install test bundle JDK7u71b12 (download from http://jre.us.oracle.com/java/re/jdk/7u71/promoted/fcs/b12/bundles/linux-x64/jdk-7u71-linux-x64.tar.gz) to /regression/jdk1.7.0_71
        3.Install stable JDK7u45b18 (download from http://jre.us.oracle.com/java/re/jdk/7u45/promoted/fcs/b18/bundles/linux-i586/jdk-7u45-linux-i586.tar.gz) to /regression/jdk1.7.0_45
        4.download and unzip Jtreg from http://jre.us.oracle.com/java/re/jtreg/4.1/promoted/fcs/b08/bundles/jtreg_bin-4.1.zip locate at /regression/
        5.Create the script regression.sh as follows and run it
      export JT_JAVA=/regression/jdk1.7.0_45
      /regression/jtreg/linux/bin/jtreg -v -m -ignore:quiet -jdk:/regression/jdk1.7.0_71 -r:/regression/results/reportDir -w:/regression/results/workDir /regression/test/closed/java/awt/TrayIcon/RemoveSystemTrayTest/RemoveSystemTrayTest.html
       
      Case Instruction:
      1) When the test starts an icon is added to the SystemTray area.
      2) Remove the SystemTray manually (if it's impossible just press PASS).
      3) If you'll see the icon is shown on the top-left corner of the screen, then press FAIL, else goto next step.
      4) Press button 'Show message'.
      5) If you'll see the message is shown on the top-left corner of the screen, then press FAIL, else press PASS.
       
      Actual behavior:
      For step2):After removing the system tray manually,the test is failed automatically.

      Exception:
      java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.
      at java.awt.SystemTray.getSystemTray(SystemTray.java:186)
      at sun.awt.X11.XTrayIconPeer$4$1.run(XTrayIconPeer.java:211)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:708)
      at java.awt.EventQueue$4.run(EventQueue.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
      STATUS:Failed.Applet thread threw exception: java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.
      result: Failed. Execution failed: Applet thread threw exception: java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.

            alitvinov Anton Litvinov (Inactive)
            michaelw Michael Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: