ozeigermann 2004/03/01 06:25:48
Modified: src/stores/org/apache/slide/store/impl/rdbms
StandardRDBMSAdapter.java
Log:
Silently ignore IOException when strema is already closed in storeContent
Revision Changes Path
1.18 +12 -5
jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java
Index: StandardRDBMSAdapter.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- StandardRDBMSAdapter.java 1 Mar 2004 11:51:59 -0000 1.17
+++ StandardRDBMSAdapter.java 1 Mar 2004 14:25:48 -0000 1.18
@@ -1190,7 +1190,14 @@
close(statement);
} finally {
if (is != null) {
- is.close();
+ // XXX some JDBC drivers seem to close the stream upon
closing of
+ // the statement; if so this will raise an IOException
+ // silently ignore it...
+ try {
+ is.close();
+ } catch (IOException ioe) {
+ logger.log("Could not close stream", ioe, LOG_CHANNEL,
Logger.DEBUG);
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]