Page 1 of 1

Ice Exception

PostPosted: Sun Oct 09, 2011 8:04 pm
by icaoberg
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 =
}

Re: Ice Exception

PostPosted: Mon Oct 10, 2011 6:38 am
by jmoore
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.