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

RegTest-test com/sun/jdi/Java_gTest.java fails

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 05/30/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b07, b06, JDK1.4.2-b24, JDK1.4.1-b21
      Testbase : RegTest-test
      Platform[s] : Solaris 9 (sparc) (CDE)
      switch/Mode : -d64
                        (not reproducible in "-server" and "-client" modes)
      Falling test[s]: com/sun/jdi/Java_gTest.java

      RegTest-test com/sun/jdi/Java_gTest.java test fails with JDK1.5.0-b07 on Solaris 9 (sparc)
      in "-d64" mode. The test passes in "-client" and "-server" mode.

      I run the test on the system with all necessery JDK bundles installed:

      j2sdk-1_5_0-beta-bin-b07-solaris-sparc-21_may_2003.tar.gz,
      j2sdk-1_5_0-beta-bin-b07-solaris-sparcv9-21_may_2003.tar.gz,
      j2sdk-1_5_0-beta-bin-b07-solaris-sparc-debug-21_may_2003.tar.gz,
      j2sdk-1_5_0-beta-bin-b07-solaris-sparcv9-debug-21_may_2003.tar.gz.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/com/sun/jdi/Java_gTest.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b07/regtest/sparc/sol9_sparc_novo48/workDir/test/com/sun/jdi/Java_gTest.jtr

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

      --- script start ---
      #!/bin/sh

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="/jave/re/jct-tools/3.1.2/archive/fcs/binaries/jct"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/latest/binaries"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-d64"
      TESTVMOPTS="-d64"

      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      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 -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="novo48" -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/com/sun/jdi/Java_gTest.java"

      --- script end ---

      Script output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/95)----------
      command: build Java_gTest
      reason: Named class compiled on demand
      elapsed time (seconds): 0.02
      result: Passed. No need to compile: Java_gTest.java

      #section:main
      ----------messages:(3/107)----------
      command: main Java_gTest
      reason: User specified action: run main Java_gTest
      elapsed time (seconds): 1.764
      ----------System.out:(0/0)----------
      ----------System.err:(48/2579)----------
      run args: [-connect, com.sun.jdi.CommandLineLaunch:vmexec=java_g, Java_gTarg]
      java.io.IOException: /net/linux-15/export/home/java/jdk1.5.0/sparc/jre/bin/sparcv9/java_g: not found
           at java.lang.UNIXProcess.forkAndExec(Native Method)
           at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
           at java.lang.Runtime.execInternal(Native Method)
           at java.lang.Runtime.exec(Runtime.java:566)
           at java.lang.Runtime.exec(Runtime.java:491)
           at java.lang.Runtime.exec(Runtime.java:457)
           at com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:153)
           at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:106)
           at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:144)
           at VMConnection.launchTarget(VMConnection.java:320)
           at VMConnection.open(VMConnection.java:158)
           at TestScaffold.connect(TestScaffold.java:563)
           at TestScaffold.startUp(TestScaffold.java:331)
           at TestScaffold.startTo(TestScaffold.java:341)
           at TestScaffold.startToMain(TestScaffold.java:336)
           at Java_gTest.runTests(Java_gTest.java:77)
           at TestScaffold.startTests(TestScaffold.java:396)
           at Java_gTest.main(Java_gTest.java:62)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
           at java.lang.Thread.run(Thread.java:534)

        Unable to launch target VM.
      java.lang.NullPointerException
           at VMConnection.open(VMConnection.java:166)
           at TestScaffold.connect(TestScaffold.java:563)
           at TestScaffold.startUp(TestScaffold.java:331)
           at TestScaffold.startTo(TestScaffold.java:341)
           at TestScaffold.startToMain(TestScaffold.java:336)
           at Java_gTest.runTests(Java_gTest.java:77)
           at TestScaffold.startTests(TestScaffold.java:396)
           at Java_gTest.main(Java_gTest.java:62)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
           at java.lang.Thread.run(Thread.java:534)

      JavaTest Message: Test threw exception: java.lang.NullPointerException
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.NullPointerException
      result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException

      test result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException

      Specific machine info:
      ======================
      Hostname: novo48
      OS: Solaris 9 (sparc) (CDE)

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vjayaramsunw Vijayan Jayaraman (Inactive)
              Reporter:
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: