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:
Created attachment 118089 [details] Test case
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) "
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.
I verified the test case works on x86_64.
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
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