JDK-4515573 : JCK1.4: Two api/java_rmi/Naming tests throw RemoteException, linux
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.0
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2001-10-17
  • Updated: 2001-10-17
  • Resolved: 2001-10-17
Related Reports
Duplicate :  
Description

Name: iaR10016			Date: 10/17/2001


JDK            : JDK1.4.0-beta-b83
JCK            : JCK1.4-b11
Platform[s]    : RedHat Linux 6.2, RedHat Linux 7.1
                 (The tests pass under Windows OS)
switch/Mode    : -Xprof -verbose -verify -Xfuture
                 (The tests pass with default switches on the same machine)
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test   : api/java_rmi/Naming/index.html#Bind [Bind0001, Bind0004]
                 api/java_rmi/Naming/index.html#Rebind [Rebind0001]

Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/Naming/BindTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/Naming/RebindTests.java

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/merlin/b83/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/Naming/index_Bind.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b83/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/Naming/index_Rebind.jtr

ow to reproduce:
====================
Run the following script under RedHat Linux 7.1
(probably, you need to change JCK and JAVA_HOME paths):
--------Script START---------------------
#!/bin/sh
JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
$JAVA_HOME/bin/rmid&
executeClass="javasoft.sqe.tests.api.java.rmi.Naming.BindTests -network.tcpPortRange 0 -TestCaseID Bind0001"
$JAVA_HOME/bin/java -Xprof -verbose -verify -Xfuture ${executeClass}
---------Script END----------------------

Test output:
=============
[Opened /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/rt.jar]
[Opened /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/sunrsasign.jar]
[Opened /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/jsse.jar]
[Opened /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/jce.jar]
[Opened /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/charsets.jar]
...
[Loaded java.io.ObjectStreamClass$ClassDataSlot from /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/rt.jar]
[Loaded java.lang.StackTraceElement from /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/rt.jar]
Using installed AllPermissionSM.
Registry created on port 37244
Using installed AllPermissionSM.
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
        java.io.EOFException
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:206)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:353)
        at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
        at java.rmi.Naming.bind(Naming.java:113)
        at javasoft.sqe.tests.api.java.rmi.Naming.BindTests$1.run(BindTests.java:67)
        at javasoft.sqe.jck.lib.AllPermissionSM.testRun(AllPermissionSM.java:88)
        at javasoft.sqe.tests.api.java.rmi.Naming.BindTests.Bind0001(BindTests.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
        at java.lang.reflect.Method.invoke(Method.java:327)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:407)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135)
        at javasoft.sqe.tests.api.java.rmi.Naming.BindTests.main(BindTests.java:52)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readByte(DataInputStream.java:281)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:192)
        ... 14 more
Bind0001: Failed. RemoteException thrown
An Exception occurred: Error unmarshaling return header; nested exception is:
        java.io.EOFException
STATUS:Failed.tests: 1; failed: 1; first test case failure: Bind0001
[Loaded java.util.HashMap$KeyIterator from /.automount/linux-15/root/export/home/java/jre1.4.0/linux/lib/rt.jar]

Flat profile of 1.63 secs (67 total ticks): main

  Interpreted + native   Method
  4.7%     0  +     3    java.lang.Class.forName0
  4.7%     0  +     3    java.lang.ClassLoader.defineClass0
  3.1%     0  +     2    sun.misc.Unsafe.defineClass
  3.1%     0  +     2    sun.reflect.MethodAccessorGenerator.generate
  1.6%     0  +     1    java.net.PlainSocketImpl.initProto
  1.6%     0  +     1    java.security.AccessController.doPrivileged
  1.6%     1  +     0    java.lang.ClassLoader.findLoadedClass
  1.6%     0  +     1    sun.nio.cs.UTF_8.newDecoder
  1.6%     0  +     1    java.rmi.server.RemoteServer.<clinit>
  1.6%     0  +     1    sun.rmi.runtime.Log$1.run
  1.6%     0  +     1    javasoft.sqe.tests.api.java.rmi.Naming.BindTests.Bind0001
  1.6%     0  +     1    java.util.jar.JarFile.getBytes
  1.6%     0  +     1    sun.rmi.transport.StreamRemoteCall.getOutputStream
  1.6%     0  +     1    java.util.jar.Manifest.<init>
  1.6%     0  +     1    java.io.ObjectOutputStream$HandleTable.<init>
  1.6%     0  +     1    java.util.logging.SimpleFormatter.<init>
  1.6%     0  +     1    sun.rmi.server.UnicastServerRef.exportObject
  1.6%     0  +     1    sun.reflect.ReflectionFactory.newFieldAccessor
  1.6%     0  +     1    java.net.ServerSocket.setImpl
  1.6%     0  +     1    java.io.PrintStream.write
  1.6%     0  +     1    sun.net.www.protocol.file.FileURLConnection.getPermission
  1.6%     0  +     1    sun.reflect.NativeConstructorAccessorImpl.newInstance
  1.6%     0  +     1    sun.rmi.transport.tcp.TCPTransport.getChannel
  1.6%     0  +     1    sun.misc.URLClassPath$2.run
  1.6%     0  +     1    sun.reflect.UTF8.utf8Length
 67.2%     1  +    42    Total interpreted (including elided)

     Compiled + native   Method
  1.6%     1  +     0    java.util.jar.Manifest$FastInputStream.readLine
  1.6%     1  +     0    Total compiled

  Thread-local ticks:
  4.5%     3             Blocked (of total)
 28.1%    18             Class loader
  1.6%     1             Interpreter
  1.6%     1             Unknown: running frame

Global summary of 1.63 seconds:
100.0%    69             Received ticks
 10.1%     7             Compilation
 26.1%    18             Class loader
  1.4%     1             Interpreter
  1.4%     1             Unknown code
Test failed

Specific Machine Info:
=====================
Hostname: Linux-14
OS: RedHat Linux 7.1

Hostname: Linux-12
OS: RedHat Linux 6.2

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

Comments
EVALUATION The signature of this exception is: java.net.SocketException: Interrupted system call It's dup of 4511253, which is fixed for RC1. ###@###.### 2001-10-17
17-10-2001