[ZODB-Dev] BTreeFolder2 causes "RuntimeError: Shouldn't load state for"?

Dieter Maurer dieter at handshake.de
Tue Jul 20 15:07:10 EDT 2004


Chris Withers wrote at 2004-7-19 08:32 +0100:
>Have you ever seen BTreeFolder2 be responsible for an error like this?
>
>    - <PythonScript at /myscript used for /myfolder/myobject>
>    - Line 4
>   Module Products.BTreeFolder2.BTreeFolder2, line 347, in objectValues
>   Module Products.BTreeFolder2.BTreeFolder2, line 336, in objectIds
>   Module ZODB.Connection, line 506, in setstate
>RuntimeError: Shouldn't load state for '\x00\x00\x00\x00\x00\x11F@' when the 
>connection is closed

This has nothing to do with "BTreeFolder2" but is a reliable
indication of a persistency bug.

Persistent objects must never:

  *  be stored outside their connection cache (e.g. not as
     a class attribute, not as a module level attribute
     nor as part of one of these)

  *  not be passed between threads

-- 
Dieter


More information about the ZODB-Dev mailing list