Marco Groppo wrote:
I forgot to say that some times I get this error when I try to access a
ZODB object (it doesn't matter what kind of object):

ERROR ZODB.Connection Shouldn't load state for 0x36 when the connection
is closed
Traceback (most recent call last):
  File "/usr/lib/python2.4/", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
"/home/marco/apps/zope3.2/lib/python/twisted/python/", line
149, in _worker, function, *args, **kwargs)
  File "/home/marco/apps/zope3.2/lib/python/twisted/python/",
line 59, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/marco/apps/zope3.2/lib/python/twisted/python/",
line 37, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/home/marco/apps/zope3.2/lib/python/twisted/web2/", line
139, in run
    result = self.application(self.environment, self.startWSGIResponse)
  File "/home/marco/apps/zope3.2/lib/python/zope/app/wsgi/",
line 49, in __call__
    request = self.requestFactory(environ['wsgi.input'], environ)
"/home/marco/apps/zope3.2/lib/python/zope/app/publication/", line 
62, in __call__
    request_class, publication_class = chooseClasses(method, env)
"/home/marco/apps/zope3.2/lib/python/zope/app/publication/", line 
34, in chooseClasses
    request_class, publication = factory()
 line 79, in __call__
    request_class = component.queryUtility(
  File "/home/marco/apps/zope3.2/lib/python/zope/component/",
line 260, in queryUtility
    return getSiteManager(context).queryUtility(interface, name,
  File "/home/marco/apps/zope3.2/lib/python/ZODB/", line
729, in setstate
    raise ConnectionStateError(msg)
ZODB.POSException.ConnectionStateError: Shouldn't load state for 0x36
when the connection is closed

...and then, if I reload the page, the problem can magically disappear,
and if I request the view another time I can get the error again, and so
on and so on... it seems to me that the behaviour is totally random.

Does anybody know what's going on?

For some reason, a database connection wasn't closed properly.

Is there anything special about your setup?  Is this a plain
Zope install?  Are you using ZEO?  Are you using a single database?


Jim Fulton           mailto:[EMAIL PROTECTED]       Python Powered!
CTO                  (540) 361-1714  
Zope Corporation
Zope3-users mailing list

Reply via email to