Fixed problem with metacat handleReadAction where the OutputStream from the response object was closed and an attempt to reopen a PrintWriter was made on the same response, which is illegal. Now the OutputStream is converted to a PrintWriter in order to write the XML error message back to the client.
Still may have a problem with determining why an exception is being thrown in handleReadAction in the first place. Many exceptions are handled in this try/catch block, and so we'll probably need to track it down when we can reproduce the behavior.
Fixed problem with metacat handleReadAction where the OutputStream from the
response object was closed and an attempt to reopen a PrintWriter was made
on the same response, which is illegal. Now the OutputStream is converted
to a PrintWriter in order to write the XML error message back to the client.
Still may have a problem with determining why an exception is being thrown
in handleReadAction in the first place. Many exceptions are handled in this
try/catch block, and so we'll probably need to track it down when we can
reproduce the behavior.