We're Hiring!

Unmarshall exception when connecting

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Unmarshall exception when connecting

Postby rguha » Wed Jun 13, 2012 8:18 pm

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)
rguha
 
Posts: 16
Joined: Thu May 26, 2011 1:04 pm

Re: Unmarshall exception when connecting

Postby cxallan » Wed Jun 13, 2012 8:23 pm

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.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Unmarshall exception when connecting

Postby rguha » Wed Jun 13, 2012 8:27 pm

Aah, just realized that. Replacing the dev jar with the one from the installed version fixeds everything. Thanks!
rguha
 
Posts: 16
Joined: Thu May 26, 2011 1:04 pm


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest