Task #1978 (closed)
BUG: internal repo fails with external registry
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | n.a. | Milestone: | OMERO-Beta4.2 |
| Component: | n.a. | Version: | n.a. |
| Keywords: | n.a. | Cc: | cneves |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2010-03-19 (5) |
Description (last modified by jmoore)
In default.xml, the IceGrid registry is collocated with blitz. When separating it out into another process (in trunk), the following happens:
2010-03-10 00:18:43,500 INFO [ ome.services.util.ServiceHandler] (r_Worker-1) Rslt: IceGrid.DeploymentException
reason = "failed to invoke ice_id() on proxy `InternalRepository-d27f1e95-feb2-4e93-a041-957438a4464e -t @ BlitzAdapters':
Reference.cpp:1585: Ice::NoEndpointException:
no suitable endpoint available for proxy `InternalRepository-d27f1e95-feb2-4e93-a041-957438a4464e -t @ BlitzAdapters'"
2010-03-10 00:18:43,501 ERROR [me.services.blitz.repo.LegacyRepositoryI] (r_Worker-1) Failed during repository takeover
IceGrid.DeploymentException
reason = "failed to invoke ice_id() on proxy `InternalRepository-d27f1e95-feb2-4e93-a041-957438a4464e -t @ BlitzAdapters':
Reference.cpp:1585: Ice::NoEndpointException:
no suitable endpoint available for proxy `InternalRepository-d27f1e95-feb2-4e93-a041-957438a4464e -t @ BlitzAdapters'"
...at ome.services.blitz.repo.LegacyRepositoryI$GetOrCreateRepo.doWork(LegacyRepositoryI.java:292)
and then
2010-03-10 00:22:43,195 INFO [ ome.services.util.ServiceHandler] (r_Worker-1) Rslt: Ice.AlreadyRegisteredException
kindOfObject = "servant"
id = "InternalRepository-d27f1e95-feb2-4e93-a041-957438a4464e"
2010-03-10 00:22:43,196 ERROR [me.services.blitz.repo.LegacyRepositoryI] (r_Worker-1) Failed during repository takeover
Ice.AlreadyRegisteredException
kindOfObject = "servant"
id = "InternalRepository-d27f1e95-feb2-4e93-a041-957438a4464e"
... at ome.services.blitz.repo.LegacyRepositoryI$GetOrCreateRepo.doWork(LegacyRepositoryI.java:292)
Change History (11)
comment:1 Changed 9 years ago by jmoore
- Summary changed from Bug: internal repo fails with external registry to BUG: internal repo fails with external registry
comment:2 Changed 9 years ago by jmoore
- Status changed from new to assigned
comment:3 Changed 9 years ago by cxallan
- Sprint changed from 2010-03-05 (4) to 2010-03-19 (5)
comment:4 Changed 9 years ago by jmoore
comment:5 Changed 9 years ago by jmoore
- Cc cneves-x added
- Description modified (diff)
comment:6 Changed 9 years ago by jmoore
- Remaining Time changed from 1 to 0
- Resolution set to fixed
- Status changed from assigned to closed
comment:7 Changed 9 years ago by jmoore
comment:8 Changed 9 years ago by jmoore <jmoore@…>
(In [1d9a5eefa6e7cccd401dd20964618d87aa062f02/ome.git]on branches 4_1, dev_4_1, dev_4_1_custom) fix #1978 - activating before call to registry
git-svn-id: file:///home/svn/omero/branches/Beta4.1@6332 05709c45-44f0-0310-885b-81a1db45b4a6
comment:9 Changed 8 years ago by jmoore <jmoore@…>
(In [1d9a5eefa6e7cccd401dd20964618d87aa062f02/ome.git]on branches 4_1, 4_1_custom, dev_4_1, dev_4_1_custom, josh/4.1-web-backport) fix #1978 - activating before call to registry
git-svn-id: file:///home/svn/omero/branches/Beta4.1@6332 05709c45-44f0-0310-885b-81a1db45b4a6
comment:10 Changed 8 years ago by jmoore <josh@…>
(In [2a164995ef8f67a890906b03e875d5affad86f97/ome.git] on branch dev_4_1_custom) Adding call to createDirectProxy in omero.util.Server (See #1978)
comment:11 Changed 8 years ago by jmoore <josh@…>
(In [aed70c8aa3f24251a0cf58991ca472a1846b596f/ome.git] on branch develop) Adding call to createDirectProxy in omero.util.Server (See #1978)
The first exception seems to be caused by attempt to add a proxy to the registry before the adapter has been activated. (The following exceptions were caused by unsafe use of objectAdapter.add(), i.e. not taking into consideration that reg.addObject could throw an exception). Testing a patch now.