[z3-five] ConnectionStateError: Shouldn't load state for 0x04 when the connection is closed

yuppie y.2006_ at wcm-solutions.de
Thu Jul 27 18:27:17 CEST 2006


Hi Morten!


Morten W. Petersen wrote:
> I'm running some custom products (nothing fancy) on Plone 2.5 with Five
> and other things.
> 
> The following message appears every now and then;  I tried asking for
> help on plone-users but nobody replied, and seeing that Five is involved
> in the traceback I thought I'd ask here.
> 
> Anyone know what's going on?

I did have the same problem and today I applied the following patch on 
my server. AFAICS pythonproducts has a quite fragile way to get hold of 
the root object (AKA app).

Index: pythonproducts.py
===================================================================
--- pythonproducts.py	(Revision 69227)
+++ pythonproducts.py	(Arbeitskopie)
@@ -124,7 +124,7 @@
          product=self.aq_acquire('_getProducts')()._product(name)

          # Try to get a custom dispatcher from a Python product
-        productPkgs = product_packages(app)
+        productPkgs = product_packages(self.getPhysicalRoot())
          dispatcher_class=getattr(
              productPkgs.get(name, None),
              '__FactoryDispatcher__',


You are invited to test this patch and to report back if it causes any 
trouble. If the patch solves the problem without creating new problems 
it should be checked in.


Cheers,

	Yuppie



More information about the z3-five mailing list