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

TEST_BUG: Regression-cte CTE_REGTEST/Generic/4463011/Test4463011.sh fails

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Verified



      Name: vsR10238 Date: 02/11/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b37
      Testbase : Regression-cte
      Platform[s] : all
      Falling test[s]:
               CTE_REGTEST/Generic/4463011/Test4463011.sh

      Regression-cte test CTE_REGTEST/Generic/4463011/Test4463011.sh fails using JDK1.5.0-b37 with
      java.lang.UnsupportedClassVersionError.

      The test tries to execute class files generated by JDK1.5.0-b37 compiler on JDK1.4.2-b28 (FCSJAVA).
      After I had changed

      ${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}*.java

      to

      ${FCSJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}*.java

      the test passed.

      Our version of the test is probably not the latest.

      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4463011/Test4463011.sh

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b37/regtest/win32/win2003_linux-19/workDir/cte/CTE_REGTEST/Generic/4463011/Test4463011.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 SWAN
      #
      # Note: to run the script on Windows you need /net mapped on N: drive (net use N: \sm-usca<your building code>-01
      et)
      # If you're outside of SCA campus please consult with http://orbit.central/iwork/tools/filemgr/windows_filemgr.html
      # to get a list of SAMBA servers nearest to your location
      #
      #net use N: \sm-usca14-01
      et
      #

      JT_HOME="n:/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="n:/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="n:/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b37/binaries/windows-i586"
      TEST_BASE_PATH="n:/jdk/export/jpse04/Regression/1.5.0/test"

      #Alternative paths for the NSK site:
      #JT_HOME="h:/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="h:/java/jdk1.5.0/win32"
      #TEST_BASE_PATH="h:/java/regtest.tiger/cte"


      TESTVMOPTS="-server"
      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"

      TEST="CTE_REGTEST/Generic/4463011/Test4463011.sh"

      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 -showversion -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,windir=$windir,SystemRoot=$SystemRoot,PATH=${SHELL%/*},CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DlocalHost=`uname -n` -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:(0/0)----------
      result: Passed. Compilation successful

      #section:shell
      ----------messages:(3/133)----------
      command: shell Test4463011.sh
      reason: User specified action: run shell/timeout=300 Test4463011.sh
      elapsed time (seconds): 20.94
      ----------System.out:(3/147)----------
      java version "1.4.2"
      0.7255500000000001*0.47250000000000003*0.35280000000000006*0.18165000000000003
      java.lang.ArrayIndexOutOfBoundsException: 4
      ----------System.err:(54/3577)----------
      java full version "1.5.0-beta2-b37"
      java.lang.UnsupportedClassVersionError: writeNIOSmap (Unsupported major.minor version 49.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      ...
      Exception in thread "main"
      result: Failed. Execution failed: exit code 1


      test result: Failed. Execution failed: exit code 1


      Specific machine info:
      ======================
      Hostname: linux-18
      OS: Solaris 10 (x86) (GNOME)
      Hostname: linux-19
      OS: Windows 2003
      Hostname: novo48
      OS: Solaris 9 (sparc) (CDE)


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

            asaha Abhijit Saha
            vshsunw Vsh Vsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: