Hi Ralf,
Good catch.
I have committed a fix in trunk of svn to reset the writer and the
stream at the end of the reset() method of
FilterServletResponseWrapper.
Revision 1179:
http://code.google.com/p/javamelody/source/detail?r=1179
With the fix, the getWriter() method of FilterServletResponseWrapper
will not throw the exception "getOutputStream() has already been
called for this response", after a successfull call to the reset()
method.
But the reset() method may also throw an IllegalStateException, if you
have already written too much in the buffer, given its javadoc in
javax.servlet.ServletResponse: "If the response has been committed,
this [reset()] method throws an IllegalStateException."
If you wish, you can use the new build which I have just made from the
current trunk:
http://javamelody.googlecode.com/files/javamelody-20100820.jar
Note that it is a jar file from the current trunk and so it is an
intermediate beta for the next release, and that it changes how
debbuging logs are managed as said in:
http://code.google.com/p/javamelody/wiki/ReleaseNotes
bye, Emeric