-
Bug
-
Resolution: Fixed
-
P1
-
5.0
-
b35
-
generic
-
generic
Name: vsR10238 Date: 12/25/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b32
Testbase : Regression-test
Platform[s] : all
Falling test[s]:
javax/management/remote/mandatory/connection/CloseServerTest.java
javax/management/remote/mandatory/connection/IdleTimeoutTest.java
javax/management/remote/mandatory/connection/MultiOpenCloseTest.java
javax/management/remote/mandatory/connection/IIOPURLTest.java
javax/management/remote/mandatory/connection/ConnectionTest.java
javax/management/remote/mandatory/connection/FailedConnectionTest.java
javax/management/remote/mandatory/notif/AddRemoveTest.java
javax/management/remote/mandatory/notif/DiffHBTest.java
javax/management/remote/mandatory/notif/NotificationBufferCreationTest.java
javax/management/remote/mandatory/serverError/JMXServerErrorTest.java
These 10 Regression-test tests fail using JDK1.5.0-b32 with:
java.lang.ClassCastException: com.sun.jmx.remote.internal.PInputStream
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:140)
All these tests except javax/management/remote/mandatory/connection/FailedConnectionTest.java
pass using JDK1.5.0-b31.
These tests are new for Tiger and fail to compile with JDK1.4.2-b28.
javax/management/remote/mandatory/connection/FailedConnectionTest.java
which is new for Tiger-b32 also fails using JDK1.5.0-b31 due to another reason:
>>> test to get an IOException when calling getConnectionID on a closed connection.
>>> Test for protocol rmi
Do not get expected IOException, failed.
>>> Test failed for rmi
>>> Test for protocol iiop
Do not get expected IOException, failed.
>>> Test failed for iiop
>>> Test for protocol jmxmp
Skipping unsupported URL jmxmp
>>> Test successed for jmxmp
>>> TEST FAILED
----------System.err:(5/408)----------
Dec 25, 2003 6:41:31 AM RMIConnector getConnectionId
WARNING: Failed to get connection id: java.rmi.NoSuchObjectException: no such object in table
Dec 25, 2003 6:41:33 AM RMIConnector getConnectionId
WARNING: Failed to get connection id: java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 1398079692 No; nested exception is:
org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: SUN minor code: 204 completed: No
result: Failed. Unexpected exit from test [exit code: 1]
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/CloseServerTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/IdleTimeoutTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/MultiOpenCloseTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/notif/AddRemoveTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/IIOPURLTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/ConnectionTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/connection/FailedConnectionTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/notif/DiffHBTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/notif/NotificationBufferCreationTest.java
/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/management/remote/mandatory/serverError/JMXServerErrorTest.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/CloseServerTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/IdleTimeoutTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/MultiOpenCloseTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/notif/AddRemoveTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/IIOPURLTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/ConnectionTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/connection/FailedConnectionTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/notif/DiffHBTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/notif/NotificationBufferCreationTest.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/management/remote/mandatory/serverError/JMXServerErrorTest.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 Java Software:
JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b32/binaries/linux-i586"
TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test"
#Alternative paths outside Java Software:
#JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
#JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
#JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b32/binaries/linux-i586"
#TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b32/ws/j2se/test"
#Alternative paths for the NSK site:
#JT_HOME="/net/linux-15/export/home/java/jct"
#JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
#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="-client"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
TEST="javax/management/remote/mandatory/connection/FailedConnectionTest.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=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-17" -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):
=======================
----------messages:(3/127)----------
command: main FailedConnectionTest
reason: User specified action: run main FailedConnectionTest
elapsed time (seconds): 3.335
----------System.out:(24/1414)----------
>>> test to get an IOException when calling getConnectionID on a closed connection.
>>> Test for protocol rmi
>>> Test successed for rmi
>>> Test for protocol iiop
>>> Test failed for iiop
java.lang.ClassCastException: com.sun.jmx.remote.internal.PInputStream
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:140)
at org.omg.CORBA.portable.ObjectImpl._releaseReply(ObjectImpl.java:474)
at org.omg.stub.javax.management.remote.rmi._RMIConnection_Stub.getConnectionId(Unknown Source)
at javax.management.remote.rmi.RMIConnector.getConnectionId(RMIConnector.java:334)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:296)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:250)
at FailedConnectionTest.test(FailedConnectionTest.java:73)
at FailedConnectionTest.main(FailedConnectionTest.java:30)
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:494)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
at java.lang.Thread.run(Thread.java:566)
>>> Test for protocol jmxmp
Skipping unsupported URL jmxmp
>>> Test successed for jmxmp
>>> TEST FAILED
----------System.err:(0/0)----------
result: Failed. Unexpected exit from test [exit code: 1]
test result: Failed. Unexpected exit from test [exit code: 1]
Specific machine info:
======================
Hostname: linux-17
OS: Mercury
Hostname: linux-22
OS: RedHat Linux 9.0 (GNOME)
======================================================================