[Zope-CMF] ConnectionStateErrors and PersistentComponent in CMF 2.1 b1 on Zope 2.10.3

Arnar Lundesgaard arnar.lundesgaard at bouvet.no
Thu May 3 07:42:38 EDT 2007


Hi, I'm developing a site on CMF 2.1b1 on Zope 2.10.3 and somehow I'm  
triggering ConnectionStateErrors.

I'm not yet as familiar with the Zope 3 machinery as I would like,  
but it seems that when certain requests are being closed the event  
subsystem tries to load the sitemanager that contains references to  
persistent objects (the portal_* tools mostly) and do some cleanup.

This raises a ConnectionStateError as the Connection has alread been  
closed. It doesn't happen all the time, and it appears more often  
when the user is Anonymous.

It seems to be trying to load data on the _components attribute on  
the portal object as a Site after the connection has been closed.

Anyone know what could be causing this?


-------
Traceback (most recent call last):
   File "/opt/Zope-2.10.3/lib/python/ZServer/PubCore/ 
ZServerPublisher.py", line 25, in __init__
     response=b)
   File "/opt/Zope-2.10.3/lib/python/ZPublisher/Publish.py", line  
401, in publish_module
     environ, debug, request, response)
   File "/opt/Zope-2.10.3/lib/python/ZPublisher/Publish.py", line  
227, in publish_module_standard
     if request is not None: request.close()
   File "/opt/Zope-2.10.3/lib/python/ZPublisher/HTTPRequest.py", line  
151, in close
     BaseRequest.close(self)
   File "/opt/Zope-2.10.3/lib/python/ZPublisher/BaseRequest.py", line  
206, in close
     notify(EndRequestEvent(None, self))
   File "/opt/Zope-2.10.3/lib/python/zope/event/__init__.py", line  
23, in notify
     subscriber(event)
   File "/opt/Zope-2.10.3/lib/python/zope/component/event.py", line  
26, in dispatch
     for ignored in zope.component.subscribers(event, None):
   File "/opt/Zope-2.10.3/lib/python/zope/component/_api.py", line  
131, in subscribers
     return sitemanager.subscribers(objects, interface)
   File "/opt/Zope-2.10.3/lib/python/zope/component/registry.py",  
line 290, in subscribers
     return self.adapters.subscribers(objects, provided)
   File "/opt/Zope-2.10.3/lib/python/ZODB/Connection.py", line 746,  
in setstate
     raise ConnectionStateError(msg)

ZODB.POSException.ConnectionStateError: Shouldn't load state for  
0x7732cd when the connection is closed




  Arnar Lundesgaard  |  Consultant
Bouvet ASA, Sandakerveien 24C D11, Postboks 4430 Nydalen, N-0403  
Oslo, Norway
Tlf. +47 23 40 60 00/61 22  |  Faks: +47 23 40 60 01  |  Mob: +47 98  
23 80 36
http://www.bouvet.no  |  arnar.lundesgaard at bouvet.no




More information about the Zope-CMF mailing list