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.

Advertising

Does anybody throw some light about this error?
Thanx for your help.
With regards,
-shailesh