Archived

This forum has been archived. Please start a new discussion on GitHub.

adapter.find fails with Python

Hi,

when calling "adapter.find(Ice.stringToIdentity(ID))" and ID is not registered, then the call fails without an exceptable exception:

python: ObjectAdapter.cpp:946: PyObject* adapterFind(IcePy::ObjectAdapterObject*, PyObject*): Assertion `wrapper' failed.

I use Ice*-3.0.1. It seems that this is a bug?

Thanks for help
Matthias

Comments

  • benoit
    benoit Rennes, France
    Hello Matthias,

    Yes, that's a bug :(! Thanks a lot for bringing this to our attention, we will fix this for the next release (let us know if you need a source patch in the meantime).

    Cheers,
    Benoit.
  • Hi Benoit,

    a source patch would be very helpful since i don't know how to work around this problem.

    Bye,
    Matthias
  • mes
    mes California
    Hi Matthias,

    I've attached a ZIP file containing replacements for ObjectAdapter.cpp and Communicator.cpp. Extract the archive, copy the files to the directory IcePy-3.0.1/modules/IcePy, then rebuild. Let us know if you have any trouble.

    Thanks again,
    - Mark
  • Hi Mark,

    ok, now i'm utterly impressed. That's what i would call a fast help :)
    Thank's a lot, it works perfectly!

    Bye,
    Matthias