Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357536

Summary: RMITransportManager removeLocalConnection() can fail
Product: z_Archived Reporter: David Minsky <david.minsky>
Component: EclipselinkAssignee: David Minsky <david.minsky>
Status: RESOLVED FIXED QA Contact: Project Inbox <eclipselink.foundation-inbox>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch
none
Proposed patch (v2)
none
Updated patch none

Description David Minsky CLA 2011-09-13 14:15:41 EDT
RMITransportManager removeLocalConnection() contains code to clean up when cache-coordination is shutting down, to do this, the service name and RMIRemoteConnection should be unbound and removed from JNDI / RMI registry and the RMI runtime.

If the naming unbind fails (for example, if the name was bound within a registry running on another local VM), then the RMIRemoteConnection cannot be removed from the RMI runtime, and the VM will never exit.

This needs to be resolved by adding separate try/catch blocks for each operation.
Comment 1 David Minsky CLA 2011-09-13 14:25:18 EDT
Created attachment 203279 [details]
Proposed patch
Comment 2 David Minsky CLA 2011-09-13 14:32:05 EDT
Patch allows an rmi runtime unexport if an unbind operation fails. This will allow a VM to exit normally.
Comment 3 David Minsky CLA 2011-09-13 15:19:36 EDT
Created attachment 203291 [details]
Proposed patch (v2)
Comment 4 David Minsky CLA 2011-09-13 15:23:37 EDT
- Added improved JavaDoc comment into patch
- Moved RMI runtime 'unexport' code into finally block
Comment 5 David Minsky CLA 2011-09-13 17:19:25 EDT
Created attachment 203307 [details]
Updated patch
Comment 6 David Minsky CLA 2011-09-14 16:55:00 EDT
Fixed in trunk (2.4) at revision: 10073
Comment 7 David Minsky CLA 2011-09-14 18:32:16 EDT
Fixed in 2.3.1 at revision: 10074
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:04:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:09:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink