[ https://issues.apache.org/jira/browse/CAMEL-7366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arni Sumarlidason reopened CAMEL-7366: -------------------------------------- Adding the fs.close() did not resolve the issue for me. I can still reproduce the behaviour. > Error during commit: GenericFileOnCompletion > -------------------------------------------- > > Key: CAMEL-7366 > URL: https://issues.apache.org/jira/browse/CAMEL-7366 > Project: Camel > Issue Type: Bug > Affects Versions: 2.13.0 > Environment: java 1.7.0_51 > Reporter: Arni Sumarlidason > Assignee: Claus Ibsen > Labels: file, seda, threading > Attachments: CAMEL-7366.tar.gz > > > Files are lost when using a thread pool paradigm and the from("file://") > source. > {code:title=Exception|borderStyle=solid} > [WARN ] [2014-04-14 11:00:28,812] [Camel (camel-1) thread #1 - seda://a] > [org.apache.camel.component.file.GenericFileOnCompletion]: Error during > commit. Exchange[66.json]. Caused by: > [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot > rename file: GenericFile[66.json] to: GenericFile[.camel/66.json]] > org.apache.camel.component.file.GenericFileOperationFailedException: Cannot > rename file: GenericFile[66.json] to: GenericFile[.camel/66.json] > at > org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.renameFile(GenericFileProcessStrategySupport.java:115) > at > org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:88) > at > org.apache.camel.component.file.GenericFileOnCompletion.processStrategyCommit(GenericFileOnCompletion.java:124) > at > org.apache.camel.component.file.GenericFileOnCompletion.onCompletion(GenericFileOnCompletion.java:80) > at > org.apache.camel.component.file.GenericFileOnCompletion.onComplete(GenericFileOnCompletion.java:54) > at > org.apache.camel.util.UnitOfWorkHelper.doneSynchronizations(UnitOfWorkHelper.java:100) > at > org.apache.camel.impl.DefaultUnitOfWork.done(DefaultUnitOfWork.java:228) > at > org.apache.camel.util.UnitOfWorkHelper.doneUow(UnitOfWorkHelper.java:61) > at > org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.after(CamelInternalProcessor.java:613) > at > org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.after(CamelInternalProcessor.java:581) > at > org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:240) > at > org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:251) > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:429) > at > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) > at > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) > at > org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:291) > at > org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:200) > at > org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:147) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > {code} > Files that produced this message seemed to be deleted from disk. -- This message was sent by Atlassian JIRA (v6.2#6252)