'None' object has no attribute 'load'
Hi, Another data point on these errors. ------ 2001-05-18T11:01:44 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0(\347\026' Traceback (innermost last): File E:\Zope\2379B4~1.2\lib\python\ZODB\Connection.py, line 508, in setstate AttributeError: 'None' object has no attribute 'load' I get the quite often when playing with Squishdot. I don't remember getting them ages ago, but I have no idea what could be causing it. How would I go about finding the id/path of the objects the ZODB couldn't load state for? I suspect this may not have a nice answer... cheers, Chris
python import Zope app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id print ob.__class__ ... etc. Chris Withers wrote:
Hi,
Another data point on these errors.
------ 2001-05-18T11:01:44 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0(\347\026' Traceback (innermost last): File E:\Zope\2379B4~1.2\lib\python\ZODB\Connection.py, line 508, in setstate AttributeError: 'None' object has no attribute 'load'
I get the quite often when playing with Squishdot. I don't remember getting them ages ago, but I have no idea what could be causing it.
How would I go about finding the id/path of the objects the ZODB couldn't load state for? I suspect this may not have a nice answer...
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 )
Chris McDonough wrote:
python import Zope app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id print ob.__class__
Thanks, that worked, and sorry Chris, but I'm about to ruin your day :-S
app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id Traceback (innermost last): File "<stdin>", line 1, in ? AttributeError: id print ob.__class__ <extension class Products.CoreSessionTracking.SessionDataContainer.SessionDataContainerMount at 00BBDE10>
So it seems that even though I'm not actually using any CST stuff right now, it's still causing these errors... Any ideas? cheers, Chris
I actually expected all along that it was mounted storage objects causing the error (this happens with any mounted storage, not just the one defined in CST). At least now we know it's the case. I'm surprised no one thought of doing this earlier. ;-) I suspect this has something to do with the _p_jar attribute of the mounted storage object becoming None at some point after a commit. That said, I'm in over my head, and I'm going to need some help from others at DC. Since this error rarely gets raised at the user level, it hasn't been a priority, and probably still won't be for some time, at least until we get the steam up to put CST into Zope in some fashion. Is it causing you problems other than the error in the log? - C Chris Withers wrote:
Chris McDonough wrote:
python import Zope app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id print ob.__class__
Thanks, that worked, and sorry Chris, but I'm about to ruin your day :-S
app = Zope.app() ob = app._p_jar['\000\000\000\000\000(\347\026'] print ob.id Traceback (innermost last): File "<stdin>", line 1, in ? AttributeError: id print ob.__class__ <extension class Products.CoreSessionTracking.SessionDataContainer.SessionDataContainerMount at 00BBDE10>
So it seems that even though I'm not actually using any CST stuff right now, it's still causing these errors...
Any ideas?
cheers,
Chris
Chris McDonough wrote:
I suspect this has something to do with the _p_jar attribute of the mounted storage object becoming None at some point after a commit. That said, I'm in over my head, and I'm going to need some help from others at DC. Since this error rarely gets raised at the user level, it hasn't been a priority, and probably still won't be for some time, at least until we get the steam up to put CST into Zope in some fashion. Is it causing you problems other than the error in the log?
It is unfortunately one of the things lowering certain parts of NIP's opinions of Zope :-S But, I think I now have confidence to say there's nothing behind this that actually matters, which I couldn't before :-) thanks for your help :-) Chris
Chris McDonough wrote: It is unfortunately one of the things lowering certain parts of NIP's opinions of Zope :-S
Ah I love FUD. Well, opine away. It has no actual effect on the system that I can detect. Deinstalling CST will make it go away as well.
But, I think I now have confidence to say there's nothing behind this that actually matters, which I couldn't before :-)
It needs to be tracked down and fixed, but I believe it's harmless. - C
Chris McDonough wrote:
Chris McDonough wrote: It is unfortunately one of the things lowering certain parts of NIP's opinions of Zope :-S
Ah I love FUD. Well, opine away. It has no actual effect on the system that I can detect. Deinstalling CST will make it go away as well.
Easier said than done... That said, I think I can convince the people involved now ;-) cheers, Chris
participants (2)
-
Chris McDonough -
Chris Withers