Could not load state?
Hi, I've started seeing errors like this: ------ 2001-02-27T11:18:34 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0\021\275\220' Traceback (innermost last): File E:\Zope\23C76D~1.1B1\lib\python\ZODB\Connection.py, line 477, in setstate AttributeError: 'None' object has no attribute 'load' ...popping up from time to time. I think they're coming from a product we've written, but beyond that I have no idea what's going on. How would I begin to dig? Is there any way I can find out the id of the object that OID corresponds to? cheers, Chris
(cd to lib/python) python import Zope app = Zope.app() jar = app._p_jar jar['\000\000\000\000\000\021\275\220'].id Although this probably won't help if you can't load state consistently. In that case.. ummm... ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: <zope-dev@zope.org> Sent: Tuesday, February 27, 2001 6:14 PM Subject: [Zope-dev] Could not load state?
Hi,
I've started seeing errors like this:
------ 2001-02-27T11:18:34 ERROR(200) ZODB Couldn't load state for
Traceback (innermost last): File E:\Zope\23C76D~1.1B1\lib\python\ZODB\Connection.py, line 477, in setstate
AttributeError: 'None' object has no attribute 'load'
...popping up from time to time. I think they're coming from a product we've written, but beyond that I have no idea what's going on. How would I begin to dig? Is there any way I can find out the id of the object that OID corresponds to?
cheers,
Chris
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Wed, 28 Feb 2001, Chris Withers wrote:
Are there archives for that anywhere?
There sure is... <URL:http://lists.zope.org/pipermail/zodb-dev/2001-February/thread.html>
Chris Withers wrote:
Hi,
I've started seeing errors like this:
------ 2001-02-27T11:18:34 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0\021\275\220' Traceback (innermost last): File E:\Zope\23C76D~1.1B1\lib\python\ZODB\Connection.py, line 477, in setstate
AttributeError: 'None' object has no attribute 'load'
...popping up from time to time. I think they're coming from a product we've written, but beyond that I have no idea what's going on.
I hazard a guess that you're changing a mutable attribute of a persistent object, without doing a _p_changed=1 on your persistent object. -- Steve Alexander Software Engineer Cat-Box limited
Steve Alexander wrote:
...popping up from time to time. I think they're coming from a product we've written, but beyond that I have no idea what's going on.
I hazard a guess that you're changing a mutable attribute of a persistent object, without doing a _p_changed=1 on your persistent object.
Eeek... that's going to be fun to track down :-( Thanks for the hint.... Chris
participants (4)
-
Chris McDonough -
Chris Withers -
Erik Enge -
Steve Alexander