Bug 166706 - UnmarshalException after unexport
Summary: UnmarshalException after unexport
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: java-1.4.2-bea
Version: 4.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Thomas Fitzsimmons
QA Contact:
URL:
Whiteboard:
Depends On: 170822
Blocks: 168424 168430
TreeView+ depends on / blocked
 
Reported: 2005-08-24 20:00 UTC by Archit Shah
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version: RHBA-2006-0008
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-15 15:46:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Test case (905 bytes, application/octet-stream)
2005-08-24 20:02 UTC, Archit Shah
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0008 0 qe-ready SHIPPED_LIVE JRockit bug fix update 2006-03-14 05:00:00 UTC
Red Hat Product Errata RHBA-2006:0009 0 qe-ready SHIPPED_LIVE Updated JRockit packages 2006-03-06 05:00:00 UTC

Description Archit Shah 2005-08-24 20:00:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4

Description of problem:
After unexporting a remote object during execution of a remote method, remote calls to the object fail with an UnmarshalException instead of a NoSuchObjectException.

Version-Release number of selected component (if applicable):
java-1.4.2-bea-1.4.2.05-1jpp_13rh

How reproducible:
Always

Steps to Reproduce:
1. export an object (can extend either PortableRemoteObject or UnicastRemoteObject) with a remote method such as:

    public void remove() throws RemoteException {
        unexportObject(this);
    }



2. Use a client to interact with the object:

        h.remove();
        try {
            h.ping();
            throw new IllegalStateException("expected NoSuchObjectException");
        } catch (NoSuchObjectException nsoe) {
            System.out.println("success");
        }


Actual Results:  Got UnmarshalException:

java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
        java.io.EOFException
        at sun.rmi.transport.StreamRemoteCall.executeCall()V(StreamRemoteCall.java:203)
        at sun.rmi.server.UnicastRef.invoke(Ljava.rmi.Remote;Ljava.lang.reflect.Method;[Ljava.lang.Object;J)Ljava.lang.Object;(UnicastRef.java:133)
        at HelloImpl_Stub.ping()V(Unknown Source)
        at Client.main([Ljava.lang.String;)V(Client.java:12)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readByte()B(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall()V(StreamRemoteCall.java:189)
        ... 3 more


Expected Results:  Expected NoSuchObjectException 

Additional info:

Comment 1 Archit Shah 2005-08-24 20:02:34 UTC
Created attachment 118089 [details]
Test case

Comment 2 Johan Walles 2005-09-09 11:23:25 UTC
Quoting from a mail I got from Archit:

"
I verified the bug is also present in the latest version we have received (for
_35rh):

# java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.1-1 (build
ari-38317-20041124-1225-linux-ia32, Native Threads, GC strategy: parallel)

The bug has been fixed in the 1.4.2_08 version:

# java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
BEA WebLogic JRockit(TM) 1.4.2_08 JVM R24.5.0-40 (build
ari-46046-20050609-2056-linux-ia32, Native Threads, GC strategy: parallel)
"

Comment 3 Thomas Fitzsimmons 2005-12-08 16:52:23 UTC
This bug is fixed by the packages in RHBA-2006:008-03 and RHBA-2006:009-02.  So
this will be fixed in RHEL3U7 and RHEL4U3.


Comment 4 Tom Kincaid 2006-01-03 20:54:20 UTC
I verified the test case works on x86_64.

Comment 8 Red Hat Bugzilla 2006-03-07 18:27:53 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0009.html


Comment 9 Red Hat Bugzilla 2006-03-15 15:46:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0008.html



Note You need to log in before you can comment on or make changes to this bug.