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

Regression-test javax/swing/JApplet/4707289/bug4707289.java fails

    • b32
    • x86
    • linux, windows_2000, windows_xp
    • Verified



      Name: iaR10016 Date: 11/26/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b29, JDK1.5.0-b28, ...
                        (the test fails with JDK1.4.2-b28 because of the bug 4771122)
      Testbase : Regression-test
      Platform[s] : Suse Linux 8.2 (GNOME2), Windows 2000 Pro
      switch/Mode : -client
      Falling test[s]: javax/swing/JApplet/4707289/bug4707289.java

      Regression-test javax/swing/JApplet/4707289/bug4707289.java test fails with JDK1.5.0-b29.

      It seems like bug 4771122 was not fully integrated actually. It was marked as "Integrated in tiger"
      at 2003/03/12 and then it was marked as "Verified" at 2003-05-16.

      However, I am still able to reproduce the failure using both JDK1.5.0-b29 and JDK1.5.0-b06 with the
      same output (tested on Suse Linux 8.1/Gnome2).

      Please, see bug 4771122 Evaluation and Comments for more details.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/javax/swing/JApplet/4707289/bug4707289.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b29/regtest/linux/suse8.2_gnome_linux-2/workDir/test/javax/swing/JApplet/4707289/bug4707289.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables):
      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b29/binaries/linux-i586"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b29/ws/j2se/test"

      #Alternative paths outside Java Software:
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b29/binaries/linux-i586"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b29/ws/j2se/test"

      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="javax/swing/JApplet/4707289/bug4707289.java"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1
      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-2" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"
      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(5/320)----------
      java.lang.Error: Button "Test" didn't gain the focus
           at bug4707289.destroy(bug4707289.java:48)
           at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:156)
           at java.lang.Thread.run(Thread.java:567)
      STATUS:Failed.Applet thread threw exception: java.lang.Error: Button "Test" didn't gain the focus
      result: Failed. Execution failed: Applet thread threw exception: java.lang.Error: Button "Test" didn't gain the focus

      Specific machine info:
      ======================
      Hostname: linux-2
      OS: Suse Linux 8.2 (GNOME2)

      ======================================================================

            apikalev Andrey Pikalev
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: