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

Access_JFileChooser/Automated/bug4515031.java fails on Vista

    Details

      Description

      JDK: Mustang b93
      Platform: Windows Vista (32-bit) build 5472
      Failing Test: Access_JFileChooser/Automated/bug5415031/bug4515031.java (TIMEOUT)

      Test sourse location:
      =======================
      /net/jsqalab/export/testsuites/SQE6.0/b11/6.0/accessibility/src/Access_JFileChooser/Automated/bug5415031/bug5415031.java

      Result location:
      =================
      http://jsqalab/results/6.0/b93/Accessibility/6.0-accessibility-winVista_c1-2006-08-02-15-46-43-0810/dtftest.Windows_NT_(unknown).x86/bug4515031/bug4515031.log

      The test is failed with the following error:
      ============================================
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3184
      at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:797)
      at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:274)
      at sun.awt.shell.ShellFolder.get(ShellFolder.java:218)
      at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(WindowsLookAndFeel.java:2041)
      at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:199)
      at javax.swing.UIDefaults.get(UIDefaults.java:144)
      at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
      at javax.swing.UIDefaults.getIcon(UIDefaults.java:426)
      at javax.swing.UIManager.getIcon(UIManager.java:727)
      at javax.swing.plaf.basic.BasicFileChooserUI.installIcons(BasicFileChooserUI.java:237)
      at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(BasicFileChooserUI.java:219)
      at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:135)
      at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:127)
      at javax.swing.JComponent.setUI(JComponent.java:648)
      at javax.swing.JFileChooser.updateUI(JFileChooser.java:1756)
      at javax.swing.JFileChooser.setup(JFileChooser.java:355)
      at javax.swing.JFileChooser.<init>(JFileChooser.java:328)
      at javax.swing.JFileChooser.<init>(JFileChooser.java:281)
      at bug4515031.<init>(bug4515031.java:27)
      at bug4515031.main(bug4515031.java:83)

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      #! sh
      #
      #

      PS=";"
      APPLETVIEWER="C:/jdk/b93/windows-i586/jdk1.6.0/bin/appletviewer"
      JAVA="C:/jdk/b93/windows-i586/jdk1.6.0/bin/java"
      DISPLAY=":0.0"
      JRE="C:/jdk/b93/windows-i586/jdk1.6.0/jre"
      TIMEOUT="30"
      MASTER_WORKSPACE="Y:/dtf/unified/knight-ws/suites/6.0"
      AWTSQE_JAR="Y:/dtf/unified/knight-ws/suites/6.0/share/lib/awtsqe/awtsqe.jar"
      test_work_dir="Y:/dtf/unified/knight-ws/exec/6.0-accessibility-winVista_c1-2006-08-02-15-46-43-0810/results/dtftest.Windows_NT_(unknown).x86/bug4515031"
      TEST_ARGS=
      test_name="bug4515031"
      SystemRoot="C:/Windows"
      JAVAC="C:/jdk/b93/windows-i586/jdk1.6.0/bin/javac"
      HOME="c:"
      test_case_name="bug4515031"
      JAVATEST_JAR="Y:/dtf/unified/knight-ws/suites/6.0/share/harness/jct-tools/javatest.jar"
      USER_HOME="C:Usersdtftest"
      JAVAC_OPTS=
      FAIL_LIST="Y:/dtf/unified/knight-ws/suites/6.0/accessibility/testlist/testlist.knownfailure"
      LD_LIBRARY_PATH=""
      JAVA_OPTS="-DHANGINGJAVA2756 -client -Dresultsdir=Y:/dtf/unified/knight-ws/exec/6.0-accessibility-winVista_c1-2006-08-02-15-46-43-0810/results"
      KSH="C:/PROGRA~1/MKSTOO~1/mksnt/ksh.exe"
      PATH="C:/PROGRA~1/MKSTOO~1/mksnt"


      #
      export AWTSQE_JAR
      export KSH
      export DISPLAY
      export SystemRoot
      export JRE
      export JAVATEST_JAR
      export HOME
      export LD_LIBRARY_PATH
      export USER_HOME
      export FAIL_LIST
      export APPLETVIEWER
      export PATH


      # Dtonga sync function sub.
      cwd=`echo $0 | sed 's/[^\/]*.tlog//'`

      dt_wait () {
      # Is not emplemented yet
      sleep 5
      }
      dt_post () {
      # Is not emplemented yet
      echo $@
      }

      dt_kill () {
      # Is not emplemented yet
      echo $@
      }


      # Dtonga deploy function sub.
      deploy () {
      rsh $1 sh -s << --EOF--
      `cat ${cwd}/${2}/${3}.tlog`
      --EOF--
      }

      TEST_DEST_DIR="bug4515031"
      TESTNAME="${test_case_name}"
      testName="Access_JFileChooser/Automated//bug4515031"
      TESTDIR="${test_work_dir}"
      testWorkDir="${test_work_dir}/"
      export testWorkDir
      tlogOutFile="${test_work_dir}/${test_name}.tlog"
      testErrFile="${test_work_dir}/${test_name}.err"
      EXECUTE_CLASS="${test_name}"
      CLASSPATH="${MASTER_WORKSPACE}/share/lib/awtsqe/awtsqe.jar"
      export CLASSPATH
      APPLICATION_TIMEOUT="${TIMEOUT}"
      CLASSPATH="${test_work_dir}${PS}${CLASSPATH}"
      export CLASSPATH
      PATH="${PATH}${PS}${LD_LIBRARY_PATH}"
      export PATH
      ${JAVAC} ${JAVAC_OPTS} -d ${test_work_dir} ${test_work_dir}/bug4515031.java
      ${JAVA} ${JAVA_OPTS} ${EXECUTE_CLASS} ${TEST_ARGS} 1>${test_work_dir}/${test_name}.eout
      # Test level exit status: 151


      The problem is reproducible on two diff machines (mandalay & kurtz) Vista build 5472.
      The test is passed on Vista build 5384

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shickeysunw Shannon Hickey (Inactive)
                Reporter:
                lshikhva Ludmila Shikhvarg (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: