-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
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/ActivationSystem/modifyDescriptor/ModifyDescriptor.java
Regression-test java/rmi/activation/ActivationSystem/modifyDescriptor/ModifyDescriptor.java
test fails with JDK1.5.0, JDK1.4.2 on RH AS 2.1 with "setActivationDesc did not take effect after a
restart" 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/ActivationSystem/modifyDescriptor/ModifyDescriptor.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/ActivationSystem/modifyDescriptor/ModifyDescriptor.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/ActivationSystem/modifyDescriptor/ModifyDescriptor.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=$JT_HOME/jemmy/jemmy.jar,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:(3/34)----------
Regression test for bug 4127754
----------System.err:(64/6165)----------
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/ActivationSystem/modifyDescriptor/rmid.security.policy -Dsun.rmi.server.activation.debugExec=true
-Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
JAVAVM: finished starting vm.
RMID: finished starting rmid.
Creating group descriptor
Registering group
Creating descriptor
Registering descriptor
Ping object
# rmid: debugExec: running "/.automount/linux-15/root/export/home/java/jdk1.5.0/linux/jre/bin/java -Dtest.message=hello -Djava.security.manager=default
-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/modifyDescriptor/group.security.policy
-Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
sun.rmi.server.ActivationGroupInit"
message = hello
Test1a passed: initial MarshalledObject correct
Test1b passed: initial group property correct
Update activation descriptor
Test2a passed: desc returned from setActivationDesc is okay
Test2b passed: group desc returned from setActivationGroupDesc is okay
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
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/ActivationSystem/modifyDescriptor/rmid.security.policy
-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/modifyDescriptor/rmid.security.policy -Dsun.rmi.server.activation.debugExec=true
-Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
-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/ActivationSystem/modifyDescriptor
JAVAVM: finished starting vm.
RMID: finished starting rmid.
Ping object after restart
TEST FAILED: Test3a failed: setActivationDesc did not take effect after a restart
TEST FAILED:
Test failed with: TEST FAILED: Test3a failed: setActivationDesc did not take effect after a restart
TestFailedException: TEST FAILED: Test3a failed: setActivationDesc did not take effect after a restart
at TestLibrary.bomb(TestLibrary.java:68)
at ModifyDescriptor.main(ModifyDescriptor.java:194)
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: Test3a failed: setActivationDesc did not take effect after a restart
TestFailedException: TEST FAILED: Test3a failed: setActivationDesc did not take effect after a restart
at TestLibrary.bomb(TestLibrary.java:68)
at ModifyDescriptor.main(ModifyDescriptor.java:194)
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: Test3a failed: setActivationDesc did not take effect after a restart
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: TestFailedException: TEST FAILED: Test3a failed: setActivationDesc did not take effect after a restart
result: Failed. Execution failed: `main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: TestFailedException: TEST FAILED: Test3a failed: setActivationDesc did not take
effect after a restart
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 ~]
...
======================================================================
- duplicates
-
JDK-4454736 rmid should wait for children to terminate after destroying them
- Closed