[ZODB-Dev] Help! New Serial handling code causing exceptions.

John D. Heintz jheintz@isogen.com
Wed, 16 May 2001 15:20:20 -0500


I'm getting the following output when i updated to the new StandaloneZODB 
Connection.py code that contains the handle_serial changes.

The exception occurs first in Transaction.py:312 (as listed below), but is 
finally raised only after clean up processing on line Transaction.py:378.  
The other Log messages occur somewhere under Transaction.py:370, but I didn't 
debug very far into it to see what was happening.

John

------------------------------------------------------------
jheintz@canine:~/src/bonnell/products/thor_corba/thorCorbaTest$ python test.py
.------
2001-05-16T20:06:46 ERROR(200) ZODB Couldn't load state for 
'\x00\x00\x00\x00\x00\x00\x00V'
Traceback (innermost last):
  File /home/jheintz/lib/python/ZODB/Connection.py, line 489, in setstate
  File /home/jheintz/lib/python/ZODB/DemoStorage.py, line 251, in load
    (Object: Demo Storage)
KeyError: '\x00\x00\x00\x00\x00\x00\x00V'


------
2001-05-16T20:06:46 ERROR(200) ZODB Couldn't load state for 
'\x00\x00\x00\x00\x00\x00\x00c'
Traceback (innermost last):
  File /home/jheintz/lib/python/ZODB/Connection.py, line 489, in setstate
  File /home/jheintz/lib/python/ZODB/DemoStorage.py, line 251, in load
    (Object: Demo Storage)
KeyError: '\x00\x00\x00\x00\x00\x00\x00c'


------
2001-05-16T20:06:46 ERROR(200) ZODB Couldn't load state for 
'\x00\x00\x00\x00\x00\x00\x00c'
Traceback (innermost last):
  File /home/jheintz/lib/python/ZODB/Connection.py, line 489, in setstate
  File /home/jheintz/lib/python/ZODB/DemoStorage.py, line 251, in load
    (Object: Demo Storage)
KeyError: '\x00\x00\x00\x00\x00\x00\x00c'
 

------
2001-05-16T20:06:46 ERROR(200) ZODB Couldn't load state for 
'\x00\x00\x00\x00\x00\x00\x00c'
Traceback (innermost last):
  File /home/jheintz/lib/python/ZODB/Connection.py, line 489, in setstate
  File /home/jheintz/lib/python/ZODB/DemoStorage.py, line 251, in load
    (Object: Demo Storage)
KeyError: '\x00\x00\x00\x00\x00\x00\x00c'

 
omniORB: Caught an unexpected Python exception during up-call.
Traceback (most recent call last):
  File "/home/jheintz/src/bonnell/products/thor_corba/thorServants.py", line 
434, in createSnapshot
    (effectiveVersions,
  File "corbaFrameworks/ZODBCorbaFramework.py", line 256, in 
_tryCommitFunction
  File "/home/jheintz/lib/python/ZODB/Transaction.py", line 312, in commit
    j.commit_sub(self)
  File "/home/jheintz/lib/python/ZODB/Connection.py", line 433, in commit_sub
    self._handle_serial(s, oid, change=0)
  File "/home/jheintz/lib/python/ZODB/Connection.py", line 638, in 
_handle_serial
    obj._p_serial = serial
TypeError: attribute-less object (assign or del)

-- 
. . . . . . . . . . . . . . . . . . . . . . . .

John D. Heintz | Senior Engineer

1016 La Posada Dr. | Suite 240 | Austin TX 78752
T 512.633.1198 | jheintz@isogen.com

w w w . d a t a c h a n n e l . c o m