Community: Framework mailing list archives

Re: Unable to use a closed cursor

Numa Extreme Systems, Gustavo Marino
- 01/21/2016 11:35:04
Give a try to, module numa_exceptions

It will store in database any exception including stack frame AND local variable values at exception time. You will find a new menu entry Exceptions in settings menu, in technicall view

It helps a lot with non easy to reproduce faults, and most of the times you don't even should ask your customer to reproduce the steps to get the exception because all the needed info is in the recorded log

Be careful: it uses monkey patching to be installed, so once is copied into the addons path will intercept exceptions. Install it as soon you copy the module and if you want to remove it, remove the module from the addons path

I will appreciate any comments

Gustavo Adrian Marino


Mobile:  +54 911 5498 2515


Skype: gustavo.adrian.marino


<img border="0" width="213" height="94" src="cid:image001.jpg@01CC37F5.99B4CD20" alt="Descripción: Numa Logo V 1-0">

2016-01-21 12:36 GMT-03:00 Alexandre Fayolle <>:
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


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

Post to: