Task #6870 (closed)
Bug: saveCollection broken
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-Beta4.3.3 |
| Component: | API | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | n.a. |
Description
~/git/examples/Training/java/src $ c $./LIB/omero_client.jar training.ReadDataAdvanced
Ice.UnknownException
unknown = "ome.conditions.InternalException: Cannot handle type:omero.model.DatasetI@342c83a0
at ome.util.ModelMapper.findTarget(ModelMapper.java:151)
at ome.util.ModelMapper.findCollectionTarget(ModelMapper.java:105)
at ome.util.ModelMapper.fillCollection(ModelMapper.java:217)
at ome.util.ModelMapper.filter(ModelMapper.java:76)
at ome.util.ModelMapper.map(ModelMapper.java:55)
at ome.services.blitz.impl.UpdateI.saveCollection_async(UpdateI.java:78)
at omero.api._IUpdateTie.saveCollection_async(_IUpdateTie.java:106)
at omero.api._IUpdateDisp.___saveCollection(_IUpdateDisp.java:163)
at omero.api._IUpdateDisp.__dispatch(_IUpdateDisp.java:373)
at IceInternal.Incoming.invoke(Incoming.java:159)
at Ice.ConnectionI.invokeAll(ConnectionI.java:2037)
at Ice.ConnectionI.message(ConnectionI.java:972)
at IceInternal.ThreadPool.run(ThreadPool.java:577)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:971)
"
at IceInternal.Outgoing.invoke(Outgoing.java:147)
at omero.api._IUpdateDelM.saveCollection(_IUpdateDelM.java:345)
at omero.api.IUpdatePrxHelper.saveCollection(IUpdatePrxHelper.java:459)
at omero.api.IUpdatePrxHelper.saveCollection(IUpdatePrxHelper.java:431)
at training.ReadDataAdvanced.createDatasets(ReadDataAdvanced.java:82)
at training.ReadDataAdvanced.<init>(ReadDataAdvanced.java:158)
at training.ReadDataAdvanced.main(ReadDataAdvanced.java:172)
Change History (2)
comment:1 Changed 8 years ago by jmoore
- Remaining Time changed from 0.1 to 0
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 8 years ago by jmoore <josh@…>
(In [61add5721237746439a0e412d596e0861dcf1ef1/ome.git]) Fix IUpdate.saveCollection mapping (Fix #6870)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Required a handler in IceMapper? for the case that neither a List nor a Set was passed. In cases where this was already happening, an ApiUsageException was being thrown so there should be no breaking change in logic, assuming no one was actively expecting the AUE.
Fix to be pushed to github.