-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
x86, sparc
-
linux, solaris_9, solaris_10, windows_xp
Name: vsR10238 Date: 08/14/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b14
Testbase : Regression-test
Platform[s] : RedHat Advanced Server 2.1 (Gnome), Windows XP Pro, Solaris 9 (sparc) (CDE), Solaris 10 (x86) (GNOME)
switch/Mode : -client, -d64, -server
Falling test[s]:
java/rmi/activation/Activatable/extLoadedImpl/ext.sh
Regression-test java/rmi/activation/Activatable/extLoadedImpl/ext.sh test fails with JDK1.5.0-b14
on all platforms:
Exception in thread "main" java.lang.NoClassDefFoundError: ExtLoadedImpl_Stub$1
The test passes with JDK1.4.2-b28, JDK1.5.0-b13.
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/rmi/activation/Activatable/extLoadedImpl/ext.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/java/rmi/activation/Activatable/extLoadedImpl/ext.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/x86"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-client"
TESTVMOPTS="-client"
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="linux-18" -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/java/rmi/activation/Activatable/extLoadedImpl/ext.sh"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(27/2194)----------
Regression test for bug 4500504
RMID: starting rmid...
JAVAVM: command = /net/linux-15/export/home/java/jdk1.5.0/x86/jre/bin/java
-Djava.security.policy=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/extLoadedImpl/rmid.security.policy -Dsun.rmi.server.activation.debugExec=true
-Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/extLoadedImpl
-Dtest.classes=/net/linux-15/export/home/results_full/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/classes/java/rmi/activation/Activatable/extLoadedImpl -Djava.rmi.server.logLevel=v
sun.rmi.server.Activation -port 1098 -log /net/linux-15/export/home/results_full/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/scratch/./log
-C-Dtest.src=/net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/Activatable/extLoadedImpl
-C-Dtest.classes=/net/linux-15/export/home/results_full/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/classes/java/rmi/activation/Activatable/extLoadedImpl
JAVAVM: finished starting vm.
RMID: finished starting rmid.
Creating descriptors
Registering descriptors
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...
Exception in thread "main" java.lang.NoClassDefFoundError: ExtLoadedImpl_Stub$1
at ExtLoadedImpl_Stub.<clinit>(ExtLoadedImpl_Stub.java:14)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:275)
at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:95)
at sun.rmi.server.ActivatableRef.getStub(ActivatableRef.java:68)
at java.rmi.activation.Activatable.register(Activatable.java:220)
at ExtLoadedImplTest.main(ExtLoadedImplTest.java:36)
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
Specific machine info:
======================
Hostname: linux-16
OS: Windows XP Pro
Hostname: linux-18
OS: Solaris 10 (x86) (GNOME)
Hostname: linux-24
OS: RedHat Advanced Server 2.1 (Gnome)
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)
======================================================================