We're Hiring!

Ice Exception

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.

Ice Exception

Postby icaoberg » Sun Oct 09, 2011 8:04 pm

This method is failing. Nonetheless, the did is valid and I can see the dataset in omeroweb. If I run our homebrew method

Code: Select all
In [13]: pslid.utilities.hasDataset( session, did )
Out[13]: True


I get that the dataset exists. But I get this

Code: Select all
In [12]: gateway.getDataset( did, True )
---------------------------------------------------------------------------
NegativeSizeException                     Traceback (most recent call last)

/afs/cs.cmu.edu/user/icaoberg/tests/examples/<ipython console> in <module>()

/usr0/local/omero.server/OMERO.server-Beta-4.3.2/lib/python/omero_api_Gateway_ice.pyc in getDataset(self, datasetId, leaves, _ctx)
    204
    205         def getDataset(self, datasetId, leaves, _ctx=None):
--> 206             return _M_omero.api.Gateway._op_getDataset.invoke(self, ((datasetId, leaves), _ctx))
    207
    208         def getDataset_async(self, _cb, datasetId, leaves, _ctx=None):

NegativeSizeException: exception ::Ice::NegativeSizeException
{
    reason =
}
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Ice Exception

Postby jmoore » Mon Oct 10, 2011 6:38 am

NegativeSizeException is an internal Ice exception pointing to the fact that something's gone wrong in the binary protocol. Almost always, the cause of this is a discrepancy between interface definitions. This would happen, for example, if you use the client libraries from one OMERO version to talk to another version of the OMERO server.

Cheers,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest