[Zope] RuntimeError: Shouldn't load state for '\x00\x00\x00\x00\x00\x006\xd1' when the connection is closed

Thierry Florac thierry.florac@onf.fr
29 Jan 2003 08:50:10 +0100


On Tue, 2003-01-28 at 20:30, Dieter Maurer wrote:
> Thierry Florac wrote at 2003-1-28 16:02 +0100:
>  > I have to face a recent problem : when I restart my Zope server, I can
>  > see pages several times but after a few requests, I receive the message
>  > written in this message's subject.
> Did you get a traceback?
> 
> Post it!


This is it !!


Exception traceback
Time 2003/01/28 16:08:37.662 GMT+1
User Name (User Id) tflorac (tflorac)
Request URL http://intra-dev.onf.fr/index_html
Exception Type RuntimeError
Exception Value Shouldn't load state for '\x00\x00\x00\x00\x00\x006\xd1'
when the connection is closed

Traceback (innermost last):

    * Module ZPublisher.Publish, line 98, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 39, in call_object
    * Module OFS.DTMLMethod, line 126, in __call__
    * Module DocumentTemplate.DT_String, line 474, in __call__
    * Module OFS.DTMLMethod, line 119, in __call__
    * Module DocumentTemplate.DT_String, line 474, in __call__
    * Module OFS.DTMLMethod, line 119, in __call__
    * Module DocumentTemplate.DT_String, line 474, in __call__
    * Module OFS.DTMLMethod, line 119, in __call__
    * Module DocumentTemplate.DT_String, line 474, in __call__
    * Module DocumentTemplate.DT_Let, line 75, in render
    * Module DocumentTemplate.DT_Util, line 201, in eval
      __traceback_info__: REQUEST
    * Module <string>, line 2, in f
    * Module AccessControl.DTML, line 32, in guarded_getitem
    * Module AccessControl.ZopeGuards, line 94, in guarded_getitem
    * Module Products.LDAPUserFolder.LDAPUser, line 117, in allowed
    * Module Products.LDAPUserFolder.LDAPUser, line 138, in
_getSatellite
    * Module Products.BTreeFolder2.BTreeFolder2, line 241, in
objectCount
    * Module BTrees.Length, line 43, in __call__
    * Module ZODB.Connection, line 504, in setstate

RuntimeError: Shouldn't load state for '\x00\x00\x00\x00\x00\x006\xd1'
when the connection is closed



For your information, I'll say that :
 - there's no anonymous access allowed to my Zope site ;
 - this problem seems to be solved, even if I don't understand why : the
only think that I modified is a little python script, called by my
standard_html_header, which have to check for a few complex access
rights and then update user's session (handled by the ZSession
product)... This python script doesn't return anything, and just raise
an exception if access conditions are not OK.

Thanks anyway for any information about this point...


  Thierry


P.S.: one more thing : my Python script stores into ZSession a custom
persistent object (a custom "user" object used to store user's
preferences). Could this explain anything, as Toby Dickenson suggested
in his last reply ??