ICE.UnmarshalOutOfBoundsException ImageJ plugin
Posted: Wed Aug 10, 2011 1:26 pm
Hi,
I am using the OMERO ImageJ plugin to download images from OMERO. I can run the plugin and connect to OMERO. I can then expand my project entries to view the datasets. When I expand a dataset I get an IJ message "An error occurred while loading data." and the plugin closes. There is no further information (client v4.3.0).
I had a look at the source code and saw that the exception stack trace is sent to the ImageJ log in version 4.3.1 but not in 4.3.0 (the version we are using in production). I recompiled 4.3.0 with the exception logging and traced the error to an ICE.UnmarshalOutOfBoundsException:
I had a search for this on Google and the top hit was actually from this forum:
http://www.openmicroscopy.org/community/viewtopic.php?f=6&t=37
The thread suggested that it could be a difference between the platforms (32-bit/64-bit) where the code has been compiled. I copied the rest of the jars from the Omero_ImageJ build output on to my problem machine and the error disappeared. This is a vanilla checkout of 4.3.0 built on Linux 64-bit. It seems that this works for my target machines (also 64-bit Linux) but the official release downloaded from OME does not.
http://www.openmicroscopy.org/site/support/omero4/downloads
So I have fixed my problem but I thought I would post this to see if any of the developers were interested. I can run some different checkout builds if you think that will provide some more useful information.
Regards,
Alex
I am using the OMERO ImageJ plugin to download images from OMERO. I can run the plugin and connect to OMERO. I can then expand my project entries to view the datasets. When I expand a dataset I get an IJ message "An error occurred while loading data." and the plugin closes. There is no further information (client v4.3.0).
I had a look at the source code and saw that the exception stack trace is sent to the ImageJ log in version 4.3.1 but not in 4.3.0 (the version we are using in production). I recompiled 4.3.0 with the exception logging and traced the error to an ICE.UnmarshalOutOfBoundsException:
- Code: Select all
ome.ij.data.DSAccessException: Cannot access data.
Cannot load hierarchy for class pojos.DatasetData.
at ome.ij.data.Gateway.handleException(Gateway.java:190)
at ome.ij.data.Gateway.loadContainerHierarchy(Gateway.java:594)
at ome.ij.data.DataServiceImpl.loadImages(DataServiceImpl.java:85)
at ome.ij.dm.browser.BrowserComponent.loadExperimenterData(BrowserComponent.java:257)
at ome.ij.dm.browser.BrowserControl.onNodeNavigation(BrowserControl.java:191)
at ome.ij.dm.browser.BrowserUI.onNodeNavigation(BrowserUI.java:222)
at ome.ij.dm.browser.BrowserUI.access$400(BrowserUI.java:85)
at ome.ij.dm.browser.BrowserUI$5.treeExpanded(BrowserUI.java:499)
at javax.swing.JTree.fireTreeExpanded(JTree.java:2666)
at javax.swing.JTree.setExpandedState(JTree.java:3427)
at javax.swing.JTree.expandPath(JTree.java:2163)
at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2204)
at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2191)
at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2149)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3511)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3459)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
at java.awt.Component.processMouseEvent(Component.java:6260)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: Ice.UnmarshalOutOfBoundsException
reason = (null)
at IceInternal.BasicStream.readString(BasicStream.java:1347)
at IceInternal.BasicStream.readTypeId(BasicStream.java:665)
at omero.model.IObject.__read(IObject.java:462)
at omero.model.PixelsType.__read(PixelsType.java:296)
at IceInternal.BasicStream.readObject(BasicStream.java:1590)
at IceInternal.BasicStream.readPendingObjects(BasicStream.java:1739)
at omero.api._IContainerDelM.loadContainerHierarchy(_IContainerDelM.java:607)
at omero.api.IContainerPrxHelper.loadContainerHierarchy(IContainerPrxHelper.java:730)
at omero.api.IContainerPrxHelper.loadContainerHierarchy(IContainerPrxHelper.java:702)
at ome.ij.data.Gateway.loadContainerHierarchy(Gateway.java:591)
... 37 more
I had a search for this on Google and the top hit was actually from this forum:
http://www.openmicroscopy.org/community/viewtopic.php?f=6&t=37
The thread suggested that it could be a difference between the platforms (32-bit/64-bit) where the code has been compiled. I copied the rest of the jars from the Omero_ImageJ build output on to my problem machine and the error disappeared. This is a vanilla checkout of 4.3.0 built on Linux 64-bit. It seems that this works for my target machines (also 64-bit Linux) but the official release downloaded from OME does not.
http://www.openmicroscopy.org/site/support/omero4/downloads
So I have fixed my problem but I thought I would post this to see if any of the developers were interested. I can run some different checkout builds if you think that will provide some more useful information.
Regards,
Alex