JDK-4910985 : REGRESSION: 2 JCK1.5-runtime api/java_rmi/activation tests fail
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 2003-08-22
  • Updated: 2003-10-02
  • Resolved: 2003-09-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description

Name: iaR10016			Date: 08/22/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b15
                  (not reproducible with JDK1.5.0-b14, JDK1.4.2-b28)
JCK            : JCK1.5-runtime (b02)
Platform[s]    : all
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
         api/java_rmi/activation/Activatable/serial/index.html#Constructor [serial2001]
         api/java_rmi/activation/ActivationID/serial/index.html#Constructor [serial2001]

2 JCK1.5-runtime tests fail with JDK1.5.0-b15 with
java.lang.ClassCastException: javasoft.sqe.serial.stub.ActivatorStub
exception.

Test source location:
=====================
/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_rmi/activation/Activatable/serial/ConstructorTests.java
/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_rmi/activation/ActivationID/serial/ConstructorTests.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/jck15/linux/suse8.0_gnome_server_linux-2/workDir/api/java_rmi/activation/Activatable/serial/index_Constructor.jtr
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/jck15/linux/suse8.0_gnome_server_linux-2/workDir/api/java_rmi/activation/ActivationID/serial/index_Constructor.jtr

How to reproduce:
=================
Run the following script (you may need to change it's variables):
--- script start ---
#!/bin/bash
JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/solaris-sparc"
#JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
#JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"
export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
$JDK/bin/java -showversion      javasoft.sqe.tests.api.java.rmi.activation.Activatable.serial.ConstructorTests      -TestCaseID serial2001
echo "---------------------------------------------------------------------------"
$JDK/bin/java       javasoft.sqe.tests.api.java.rmi.activation.ActivationID.serial.ConstructorTests       -TestCaseID serial2001
--- script end ---

Test output:
============
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b15)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b15, mixed mode)

java.lang.ClassCastException: javasoft.sqe.serial.stub.ActivatorStub
     at java.rmi.activation.ActivationID.writeObject(ActivationID.java:193)
     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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
     at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
     at javasoft.sqe.serial.util.Convert.objectToStreamObject(Convert.java:30)
     at javasoft.sqe.tests.api.java.rmi.activation.Activatable.serial.ConstructorTests.serial2001(ConstructorTests.java:67)
     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 javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
     at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
     at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
     at javasoft.sqe.tests.api.java.rmi.activation.Activatable.serial.ConstructorTests.main(ConstructorTests.java:30)
serial2001: Failed. Test case throws exception: java.lang.ClassCastException: javasoft.sqe.serial.stub.ActivatorStub
Creating StreamObject from Object
STATUS:Failed.test cases: 1; all failed; first test case failure: serial2001
---------------------------------------------------------------------------
java.lang.ClassCastException: javasoft.sqe.serial.stub.ActivatorStub
     at java.rmi.activation.ActivationID.writeObject(ActivationID.java:193)
     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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
     at javasoft.sqe.serial.util.Convert.objectToStreamObject(Convert.java:30)
     at javasoft.sqe.tests.api.java.rmi.activation.ActivationID.serial.ConstructorTests.serial2001(ConstructorTests.java:60)
     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 javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
     at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
     at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
     at javasoft.sqe.tests.api.java.rmi.activation.ActivationID.serial.ConstructorTests.main(ConstructorTests.java:30)
serial2001: Failed. Test case throws exception: java.lang.ClassCastException: javasoft.sqe.serial.stub.ActivatorStub
Creating StreamObject from Object
STATUS:Failed.test cases: 1; all failed; first test case failure: serial2001

Specific machine info:
======================
Hostname: linux-19
OS: Windows 2003
Hostname: linux-2
OS: Suse Linux 8.2 (GNOME2)
Hostname: linux-8
OS: Solaris 10 (sparc) (GNOME)

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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b21 VERIFIED IN: tiger
14-06-2004

EVALUATION Yes, there is a bug here, introduced with the implementation of RFE 4507539 in Tiger. The cast in ActivationID.writeObject should be to RemoteObject (as before), not RemoteStub. The test class javasoft.sqe.serial.stub.ActivatorStub extends RemoteObject, not RemoteStub, and in general, any instance of RemoteObject should be supported (as before). This should be fixed for Tiger. ###@###.### 2003-08-22 The bug is fixed, but the test still fails because of the fix for 4460983 The JCK tests need to be changed to cope with the new behavior introduced in 4460983. ###@###.### 2003-09-17
17-09-2003