Page 1 of 1

Unmarshall exception when connecting

PostPosted: Wed Jun 13, 2012 8:18 pm
by rguha
Hi I have an OMERO server (4.3.2) running on a remote host. I am trying to use the Java client API to query the server, but am getting tripped up on the connection step. I am using code based on https://github.com/openmicroscopy/openm ... OMERO.java and my code can be seen at https://gist.github.com/2926251

I am using omero_client.jar from http://hudson.openmicroscopy.org.uk/job ... client.jar

However, when running the above code I get the following exception:


Exception in thread "main" Ice.UnmarshalOutOfBoundsException
reason = (null)
at IceInternal.BasicStream.checkFixedSeq(BasicStream.java:293)
at IceInternal.BasicStream.readBoolSeq(BasicStream.java:861)
at omero.api.BoolArrayHelper.read(BoolArrayHelper.java:26)
at omero.model.Permissions.__read(Permissions.java:710)
at IceInternal.BasicStream.readObject(BasicStream.java:1590)
at IceInternal.BasicStream.readPendingObjects(BasicStream.java:1739)
at omero.api._IAdminDelM.getEventContext(_IAdminDelM.java:1085)
at omero.api.IAdminPrxHelper.getEventContext(IAdminPrxHelper.java:1431)
at omero.api.IAdminPrxHelper.getEventContext(IAdminPrxHelper.java:1403)
at gov.nih.ncgc.ome.ConnectTest.run(ConnectTest.java:26)
at gov.nih.ncgc.ome.ConnectTest.main(ConnectTest.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

From what I have found, this could be an incompatibility between ICE libraries. if that's the case, where is the appropriate version of omero_client.jar located? And if this not due to library incpompatibilities, can anybody point me to what the problem is?

(The login credentials are correct as I can use them to login via the web client or OMERO.Insight)

Re: Unmarshall exception when connecting

PostPosted: Wed Jun 13, 2012 8:23 pm
by cxallan
You're trying to use an omero_client.jar from a development build with a stable release. You need to be using the JARs that apply to the OMERO series (4.3.x) that you're on. You can either download them separately or get them from lib/client/ on your server.

Re: Unmarshall exception when connecting

PostPosted: Wed Jun 13, 2012 8:27 pm
by rguha
Aah, just realized that. Replacing the dev jar with the one from the installed version fixeds everything. Thanks!