[Zope3-Users] ConnectionStateError when a worker thread finishes

Shailesh Kumar shaileshk at gmail.com
Wed Jan 3 05:46:18 EST 2007


Hi,
In my application, some background threads are being created. But when a
thread finishes up its work, a strange exception is thrown:
The callstack doesn't show any part of my application code.
=====================================================================================
Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\zope\server\taskthreads.py", line 48,
in handlerThread
    task.service()
  File "C:\Python24\Lib\site-packages\zope\server\serverchannelbase.py",
line 207, in service
    task.service()
  File "C:\Python24\Lib\site-packages\zope\server\http\httptask.py", line
71, in service
    self.channel.server.executeRequest(self)
  File "C:\Python24\Lib\site-packages\zope\server\http\wsgihttpserver.py",
line 63, in executeRequest
    task.write(self.application(env, start_response))
  File "C:\Python24\Lib\site-packages\zope\app\wsgi\__init__.py", line 55,
in __call__
    request = publish(request, handle_errors=handle_errors)
  File "C:\Python24\Lib\site-packages\zope\publisher\publish.py", line 183,
in publish
    request.close()  # Close database connections, etc.
  File "C:\Python24\Lib\site-packages\zope\publisher\base.py", line 301, in
close
    held.release()
  File
"C:\Python24\Lib\site-packages\zope\app\publication\zopepublication.py",
line 60, in release
    self._f()
  File "C:\Python24\Lib\site-packages\ZODB\Connection.py", line 235, in
close
    raise ConnectionStateError("Cannot close a connection joined to "
ConnectionStateError: Cannot close a connection joined to a transaction
=====================================================================================
My worker thread are created using threading.Thread based classes.

Does anybody throw some light about this error?

Thanx for your help.

With regards,
-shailesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20070103/0e20ebfb/attachment.htm


More information about the Zope3-users mailing list