[Zope-dev] Weird ConflictErrors on startup

Chris McDonough chrism@zope.com
Mon, 06 Aug 2001 12:36:27 -0400


It's generally bad form for a Product to try to modify a persistent
object at startup.  Unless it's an _v_ attribute or something.

Toby Dickenson wrote:
> 
> On Mon, 06 Aug 2001 12:52:12 +0100, Chris Withers <chrisw@nipltd.com>
> wrote:
> 
> >Hi,
> >
> >I'm trying to move a project from Zope 2.3.2 to Zope 2.4.0.
> >
> >Once I move to 2.4.0, I get lots of the following errors on startup:
> 
> >ConflictError: ('\x00\x00\x00\x00\x00\x00\x00\x00', '\x03>9\xad\xbf;\xcbD')
> 
> >I'd love to know what's going on here but I'm completely stumped...
> 
> I think Ive seen this before, when Product initialization modifies a
> persistent object, then causes an exception (ImportError, or
> whatever). You see these ConflictErrors if a subsequent Product
> initialization also modifies a persistent object.
> 
> I guess the transaction in which that first product was initialized
> was not correctly aborted.
> 
> Ive not looked at this in detail, since its only a problem if you have
> broken products. My priority has always been to unbreak them....
> 
> Toby Dickenson
> tdickenson@geminidataloggers.com
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chris McDonough                           Zope Corporation
http://www.zope.org                    http://www.zope.com

""" Killing hundreds of birds with thousands of stones """