[Zope-dev] Session Errors

Chris McDonough chrism@zope.com
13 Mar 2003 09:41:35 -0500


John,

Which Zope 2.6?  Zope 2.6.1?  Here's what line 807 of the current
Transience.py looks like:

                v = self._data[b].get(k, notfound)

Does yours look like that?

What is the value of the __version__ variable at the top of the
Transience.py file?

On Thu, 2003-03-13 at 07:11, John Eikenberry wrote:
> Since upgrading to Zope-2.6 we've been getting KeyErrors when using
> Sessions. They seem to happen more now that we've started using
> hasSessionData(), but I'm pretty sure they happened prior to that.
> 
> Anyways, here are the 2 related tracebacks. Has anyone else seen these?
> 
> Traceback #1 occurs most frequently. The KeyError's value is an unprintable
> string of non-ascii characters.
> 
> * Module ZPublisher.Publish, line 150, in publish_module
> * Module ZPublisher.Publish, line 114, in publish
> * Module The application server.App.startup, line 182, in
>   zpublisher_exception_hook
> * Module ZPublisher.Publish, line 98, in publish
> * Module ZPublisher.mapply, line 88, in mapply
> * Module ZPublisher.Publish, line 39, in call_object
> * Module App.special_dtml, line 61, in __call__
> * Module DocumentTemplate.DT_String, line 474, in __call__
> * Module Products.Transience.Transience, line 342, in nudge
> * Module Products.Transience.Transience, line 467, in _getCurrentBucket
> * Module Products.TemporaryFolder.LowConflictConnection, line 34, in
>   setstate
> * Module Products.TemporaryFolder.TemporaryStorage, line 94, in load
> KeyError:
> 
> Traceback #2 happens less frequently, though today it seemed like it was
> trying to catch up (3 of these today).
> 
> * 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 Products.DotOrg.Pages.KContent, line 149, in __call__
> * Module Products.DotOrg.Pages.KContent, line 194, in getEditInfo
> * Module Products.DotOrg.Pages.KContent, line 506, in hasSessionData
> * Module Products.Sessions.SessionDataManager, line 101, in hasSessionData
> * Module Products.Sessions.SessionDataManager, line 175, in
>   _hasSessionDataObject
> * Module Products.Transience.Transience, line 838, in has_key
> * Module Products.Transience.Transience, line 807, in get
> 
> KeyError: 1047409860 
> 
> 
> -- 
> 
> John Eikenberry [jae@kavi.com]
> ______________________________________________________________
> "A society that will trade a little liberty for a little order
>  will deserve neither and lose both."
>                                           --B. Franklin
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )