1 Reply Latest reply on Sep 25, 2008 3:20 AM by maku_martin.kuhn

    4.0 preview -> file:poller ERROR ? -> Could not delete file -> IOException

    maku_martin.kuhn

      HI,

       

      I'm a starter with Servicemix and I've a problem with file:poller (I use fuse-esb-4.0.0.0-preview1 under Windows XP)

       

      I want to send a file to a servicemix-bean. The bean get the file but I get an exception.

       

      After burdensome investigations and debugging  I realized that

      that the file is locked when the file should be deleted (FilePollerEndpoint -> method process(MessageExchange exchange) ->  line 294). This prevents the successfully deleting.

       

      When I debug and remove the lock from the file "manually" before the delete method is executed I get no exception.

       

      This seems for me to be an error

       

      The Exception:

       

      org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@307ae3

      java.io.IOException: Could not delete file \mesb\transactions_in\deploy_me-test.xml

       

      Could anybody give me a hint what's wrong.

       

      Here my configs:

      <beans xmlns:file="http://servicemix.apache.org/file/1.0"

       

       

       

       

       

      </beans>

       

      <beans xmlns:bean="http://servicemix.apache.org/bean/1.0"

      </beans>

       

       

       

       

       

      Could anybody give me a hint if this is an error and what I can do?

       

       

      TIA

      Martin