ozeigermann    2004/03/01 06:28:29

  Modified:    src/stores/org/apache/slide/store/impl/rdbms Tag:
                        SLIDE_2_0_RELEASE_BRANCH StandardRDBMSAdapter.java
  Log:
  Silently ignore IOException when strema is already closed in storeContent
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.14.2.3  +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.14.2.2
  retrieving revision 1.14.2.3
  diff -u -r1.14.2.2 -r1.14.2.3
  --- StandardRDBMSAdapter.java 1 Mar 2004 10:14:01 -0000       1.14.2.2
  +++ StandardRDBMSAdapter.java 1 Mar 2004 14:28:29 -0000       1.14.2.3
  @@ -1191,7 +1191,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]

Reply via email to