[Zope] error: Z2 CONFLICT Competing writes

zope-mailinglist zope-mailinglist <zope-mailinglist@mopa.at>
Tue, 5 Jun 2001 15:23:12 +0200


thanks for the very very fast info

seems that i always get infos from you in this list ...

either way ... the reason was a bug in a mixin class which i wrote

there was a self.xxx = sss like statement in a public method, used by
various objects at the same time

thx

----- Original Message -----
From: "Chris McDonough" <chrism@digicool.com>
To: "zope-mailinglist" <zope-mailinglist@mopa.at>
Cc: <zope@zope.org>
Sent: Tuesday, June 05, 2001 2:46 PM
Subject: Re: [Zope] error: Z2 CONFLICT Competing writes


> Your probuct causes multiple simultaneous ZODB writes, likely because
> you have a method which assigs a value to an instance attribute in an
> instance of one of your classes, and multiple threads (web users) are
> trying to execute the method which does this at the same time.
>
> Search for "conflict errors" in the mail list archives for more info.
> This error is possibly normal depoending on your application.
>
> zope-mailinglist wrote:
> >
> > hello all together
> >
> > i've got the following problem:
> >
> > i wrote a python product which inherits from ofs.folder
> > i defined some HTMLFiles in it like this:
> >
> > index_html = (HTMLFile('dtml/representation/site_index_html',
globals()))
> >
> > now when i access the files via web i get the following error:
> >
> > 2001-06-05T12:25:21 INFO(0) Z2 CONFLICT Competing writes at, <the path
to
> > the object>
> > Traceback (innermost last):
> >   File D:\zope231\lib\python\ZPublisher\Publish.py, line 175, in publish
> >   File D:\zope231\lib\python\Zope\__init__.py, line 235, in commit
> >   File D:\zope231\lib\python\ZODB\Transaction.py, line 300, in commit
> >   File D:\zope231\lib\python\ZODB\Connection.py, line 281, in commit
> > ConflictError: '\000\000\000\000\000\00013'
> >
> > note: at this time there are no management windows open - only the
frontend
> >
> > this is my system info:
> >
> > Debug Information
> >
> >   a.. Zope version: Zope 2.3.1 (binary release, python 1.5.2, win32-x86)
> >   b.. Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit
(Intel)]
> >   c.. System Platform: win32
> >   d.. Process ID: 1600 (312)
> >   e.. Running for: 19 min 22 sec
> > the page shows up right - but the error appears in the command window .(
> >
> > thanks in advance
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>