Revision 845
Added by Matt Jones over 22 years ago
MetaCatUtil.java | ||
---|---|---|
177 | 177 |
|
178 | 178 |
/* Utility method to get a unused Connection object from the pool */ |
179 | 179 |
public Connection getConnection() |
180 |
throws SQLException, ClassNotFoundException, Exception { |
|
180 |
throws SQLException, ClassNotFoundException, Exception |
|
181 |
{ |
|
181 | 182 |
|
182 | 183 |
Connection conn = null; |
183 | 184 |
Enumeration connections = connectionPool.keys(); |
Also available in: Unified diff
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.