I have a servlet that flush()es it's response in order to show progress. I 
notice that if an exception occurs during the process, instead of getting 
the normal Python exception page, I get yet another exception:

Traceback (most recent call last):
   File "/usr/lib/python2.0/threading.py", line 376, in __bootstrap
     self.run()
   File "/usr/lib/python2.0/threading.py", line 364, in run
     apply(self.__target, self.__args, self.__kwargs)
   File "/var/opt/dailies/20010527/Webware/WebKit/ThreadedAppServer.py", 
line 146, in threadloop
     rh.handleRequest()
   File "/var/opt/dailies/20010527/Webware/WebKit/ThreadedAppServer.py", 
line 370, in handleRequest
     transaction = self.server._app.dispatchRawRequest(dict, strmOut)
   File "/var/opt/dailies/20010527/Webware/WebKit/Application.py", line 
317, in dispatchRawRequest
     return self.dispatchRequest(self.createRequestForDict(newRequestDict), 
strmOut)
   File "/var/opt/dailies/20010527/Webware/WebKit/Application.py", line 
355, in dispatchRequest
     self.handleExceptionInTransaction(sys.exc_info(), transaction)
   File "/var/opt/dailies/20010527/Webware/WebKit/Application.py", line 
875, in handleExceptionInTransaction
     self._exceptionHandlerClass(self, transaction, excInfo)
   File "/var/opt/dailies/20010527/Webware/WebKit/ExceptionHandler.py", 
line 41, in __init__
     self.work()
   File "/var/opt/dailies/20010527/Webware/WebKit/ExceptionHandler.py", 
line 69, in work
     self._res.reset()
   File "/var/opt/dailies/20010527/Webware/WebKit/HTTPResponse.py", line 
235, in reset
     assert self._committed == 0


At some point, we'll need more sophisticated handling. Like maybe the 
exception handler could check if the response is committed and if so, only 
display exception information if the content/type is HTML.

(This is on Linux, Apache 1.3.x, Webware CVS, mod_webkit)

-Chuck


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to