Home Help Center

adapter.find fails with Python

hiaslhiasl Member Matthias WeberOrganization: University of Erlangen-NurembergProject: This baby is still nameless
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

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • hiaslhiasl Member Matthias WeberOrganization: University of Erlangen-NurembergProject: This baby is still nameless
    Hi Benoit,

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

    Bye,
    Matthias
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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
  • hiaslhiasl Member Matthias WeberOrganization: University of Erlangen-NurembergProject: This baby is still nameless
    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
Sign In or Register to comment.