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

Regression-test java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java

XMLWordPrintable

    • x86
    • linux



      Name: iaR10016 Date: 09/02/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b17, JDK1.5.0-b16, JDK1.4.2-b28
      Testbase : Regression-test
      Platform[s] : RedHat Advanced Server 2.1 (Gnome)
                     (not reproducible on any other system I have including Suse Linux 8.1, Suse Linux 8.2)
      switch/Mode : -server, -client
      Falling test: java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java

      Regression test java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java
      fails with JDK1.5.0, JDK1.4.2 on RH AS 2.1 with "unicast obj accessible after group
      reactivates" error message. This failure is not reproducible on any other system I have.
      Please, get more information about the tested configuration in "Specific machine info"
      section.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.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
      JT_HOME="/net/linux-15/export/home/java/jct"
      JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/linux"
      TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"
      TESTVMOPTS="-server"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.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,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-24" -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:compile
      ----------messages:(3/225)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup/../../../testlibrary/RMID.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.778
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/237)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup/../../../testlibrary/ActivationLibrary.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.76
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/111)----------
      command: build ActivateMe
      reason: User specified action: run build ActivateMe
      elapsed time (seconds): 0.0010
      result: Passed. No need to compile: ActivateMe.java

      #section:build
      ----------messages:(3/114)----------
      command: build InactiveGroup
      reason: User specified action: run build InactiveGroup
      elapsed time (seconds): 0.0
      result: Passed. No need to compile: InactiveGroup.java

      #section:build
      ----------messages:(3/127)----------
      command: build InactiveGroup_Stub
      reason: User specified action: run build InactiveGroup_Stub
      elapsed time (seconds): 0.0010
      result: Passed. No need to compile: InactiveGroup_Stub.java

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

      #section:main
      ----------messages:(3/157)----------
      command: main InactiveGroup
      reason: User specified action: run main/othervm/policy=security.policy/timeout=240 InactiveGroup
      elapsed time (seconds): 27.926
      ----------System.out:(3/34)----------

      Regression test for bug 4116082

      ----------System.err:(52/4939)----------
      RMID: starting rmid...
      JAVAVM: command = /.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java
      -Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup/rmid.security.policy -Dsun.rmi.server.activation.debugExec=true
      -Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup
      -Dtest.classes=/.automount/linux-15/root/export/home/results_full/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/classes/java/rmi/activation/Activatable/inactiveGroup
      -Djava.rmi.server.logLevel=v sun.rmi.server.Activation -port 1098 -log
      /.automount/linux-15/root/export/home/results_full/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/scratch/./log
      -C-Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup
      -C-Dtest.classes=/.automount/linux-15/root/export/home/results_full/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/classes/java/rmi/activation/Activatable/inactiveGroup

      JAVAVM: finished starting vm.
      RMID: finished starting rmid.
      Creating descriptor
      Registering descriptor
      Activate object via method call
      # rmid: debugExec: running "/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Djava.security.manager=default
      -Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup/group.security.policy
      -Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup
      -Dtest.classes=/.automount/linux-15/root/export/home/results_full/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/classes/java/rmi/activation/Activatable/inactiveGroup
      sun.rmi.server.ActivationGroupInit"
      Obtain unicast object
      Make activatable object inactive
      Ping unicast object for existence
      # Mon Sep 01 05:01:00 GMT 2003:ExecGroup-0:err:ACTIVATION_LIBRARY: inactive successful
      Reactivate activatable obj
      # rmid: debugExec: running "/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Djava.security.manager=default
      -Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup/group.security.policy
      -Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/inactiveGroup
      -Dtest.classes=/.automount/linux-15/root/export/home/results_full/tiger/b17/regtest/linux/redhat_advserver21_gnome_smp_linux-24/workDir/test/classes/java/rmi/activation/Activatable/inactiveGroup
      sun.rmi.server.ActivationGroupInit"
      Ping unicast object again
      TEST FAILED: Test failed: unicast obj accessible after group reactivates
      TEST FAILED:
      Test failed with: TEST FAILED: Test failed: unicast obj accessible after group reactivates
      TestFailedException: TEST FAILED: Test failed: unicast obj accessible after group reactivates
           at TestLibrary.bomb(TestLibrary.java:68)
           at InactiveGroup.main(InactiveGroup.java:151)
           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:549)
      RMID: getting a reference to the activation system
      RMID: obtained a reference to the activation system
      # activation daemon shut down
      RMID: testlibrary finished shutting down rmid
      RMID: rmid exited on shutdown request
      ACTIVATION_LIBRARY: finished destroying rmid
      RMID: removing rmid's old log file...
      TestFailedException: TEST FAILED: ; nested exception is:
           TestFailedException: TEST FAILED: Test failed: unicast obj accessible after group reactivates
      TestFailedException: TEST FAILED: Test failed: unicast obj accessible after group reactivates
           at TestLibrary.bomb(TestLibrary.java:68)
           at InactiveGroup.main(InactiveGroup.java:151)
           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:549)

      JavaTest Message: Test threw exception: TestFailedException: TEST FAILED: ; nested exception is:
           TestFailedException: TEST FAILED: Test failed: unicast obj accessible after group reactivates
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: TestFailedException: TEST FAILED: Test failed: unicast obj accessible after group reactivates
      result: Failed. Execution failed: `main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: TestFailedException: TEST FAILED: Test failed: unicast obj accessible after group
      reactivates

      Specific machine info:
      ======================
      Hostname: carina
      OS: RedHat Advanced Server 2.1 (Gnome)
      ...
      [aa133784@carina]$ uname -a
      Linux carina 2.4.9-e.3smp #1 SMP Fri May 3 16:48:54 EDT 2002 i686 unknown
      [aa133784@carina]$cat /etc/issue
      Red Hat Linux Advanced Server release 2.1AS/\m (Pensacola)
      ...

      Hostname: linux-24
      OS: RedHat Advanced Server 2.1 (Gnome)
      ...
      [ira@linux-24 ~]$ cat /etc/issue
      Red Hat Linux Advanced Server release 2.1AS/\m (Pensacola)
      [ira@linux-24 ~]$ uname -a
      Linux linux-24 2.4.9-e.3enterprise #1 SMP Fri May 3 16:35:33 EDT 2002 i686 unknown
      [ira@linux-24 ~]
      ...

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

            awollratsunw Ann Wollrath (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: