Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357536 - RMITransportManager removeLocalConnection() can fail
Summary: RMITransportManager removeLocalConnection() can fail
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Minsky CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 14:15 EDT by David Minsky CLA
Modified: 2022-06-09 10:09 EDT (History)
0 users

See Also:


Attachments
Proposed patch (1.07 KB, application/octet-stream)
2011-09-13 14:25 EDT, David Minsky CLA
no flags Details
Proposed patch (v2) (2.56 KB, patch)
2011-09-13 15:19 EDT, David Minsky CLA
no flags Details | Diff
Updated patch (2.62 KB, patch)
2011-09-13 17:19 EDT, David Minsky CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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