Author: lhein
Date: Thu Jul 30 06:04:35 2009
New Revision: 799176

URL: http://svn.apache.org/viewvc?rev=799176&view=rev
Log:
catching now IOExceptions when closing the stream in the process() method

Modified:
    
servicemix/components/bindings/servicemix-vfs/trunk/src/main/java/org/apache/servicemix/vfs/VFSPollingEndpoint.java

Modified: 
servicemix/components/bindings/servicemix-vfs/trunk/src/main/java/org/apache/servicemix/vfs/VFSPollingEndpoint.java
URL: 
http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-vfs/trunk/src/main/java/org/apache/servicemix/vfs/VFSPollingEndpoint.java?rev=799176&r1=799175&r2=799176&view=diff
==============================================================================
--- 
servicemix/components/bindings/servicemix-vfs/trunk/src/main/java/org/apache/servicemix/vfs/VFSPollingEndpoint.java
 (original)
+++ 
servicemix/components/bindings/servicemix-vfs/trunk/src/main/java/org/apache/servicemix/vfs/VFSPollingEndpoint.java
 Thu Jul 30 06:04:35 2009
@@ -162,7 +162,12 @@
             logger.debug("Releasing " + aFile.getName().getPathDecoded());
         
             // first try to close the stream
-            stream.close();
+            try {
+               stream.close();                 
+            } catch (IOException ex) {
+               logger.error("Unable to close stream for file " + 
aFile.getName().getPathDecoded(), ex);
+            }
+            
             try {
                 // check for state
                 if (exchange.getStatus() == ExchangeStatus.DONE) {


Reply via email to