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