Community: Framework mailing list archives

expert-framework@mail.odoo.com

Unable to use a closed cursor

by
Camptocamp France SAS, Alexandre Fayolle - Camptocamp
- 01/21/2016 10:33:22
Hello everyone,

On the production instance of a customer, I'm facing a hard to reproduce
bug, and I don't understand what is happening.

Context: Odoo v8, and there is an external application which uses the
Odoo XMLRPC API to create / write things in the Odoo database.

Most of the time, everything goes very well. But sometimes, an XMLRPC
call will raise OperationalError: Unable to use a closed cursor.

A sample stack trace for this is attached. Rerunning the same XMLRPC
call succeeds.

I'm unable to imagine a scenario explaining this, and your feedback is
welcome.

Thanks


-- 
Alexandre Fayolle
Chef de Projet
Tel : +33 4 58 48 20 30

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com