Affects Version/s: 1.7.2
Fix Version/s: None
Environment:WebSphere Application Server 6.1 FP2
When you execute a tag or servlet test at the conclusion of the test (after successful execution) WAS reports the following
[9/24/07 15:42:12:250 CDT] 00000021 jsp W org.apache.jasper.runtime.PageContextImpl release failed to flush response buffer during PageContext.release().
java.io.IOException: Stream closed
Now this is a warning but the stack trace that accompanies this is quite verbose and as it happens for each test method you can wind up with a very cluttered log (not to mention people being concerned about the messages coming out of their server)
I did some looking and the issue seems very straight forward so I don't think I am missing something and think the cactus code may be at fault. In the AbstractWebTestCaller on line 192 there is a out.close() statement which closes the JspWriter created by the web container (obtained via the getResponseWriter()) on the ServletTestCaller). To my knowledge it is not a good idea to close the writers created by the web container, you can simply let the web container do the closing for you which also avoids the above warning.
By commenting out the close the tests now run and run without error/warning. Is this change something that should be migrated into the cactus source?