Hi, We've been using the file component for a while with camel version 2.0, and it has successfully moved files into a sub directory called .camel once they have been processed. We are in the process of trying to upgrade to version 2.2 but are experiencing some issues. The problem we are finding is that the file component is now looking for the .camel directory in the server root i.e. as an absolute path instead of a relative path. Obviously the directory does not exist and it is throwing an exception, see below. Any help would be appreciated.
[: FileComponent] ERROR GenericFileOnCompletion - Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot rename file: GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL UNDER NDA SampleCrMetadata-20091216.xml] to: GenericFile[/.camel/]] org.apache.camel.component.file.GenericFileOperationFailedException: Cannot rename file: GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL UNDER NDA SampleCrMetadata-20091216.xml] to: GenericFile[/.camel/] at org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:96) at org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:72) at org.apache.camel.component.file.GenericFileOnCompletion.processStrategyCommit(GenericFileOnCompletion.java:122) at org.apache.camel.component.file.GenericFileOnCompletion.onCompletion(GenericFileOnCompletion.java:83) at org.apache.camel.component.file.GenericFileOnCompletion.onComplete(GenericFileOnCompletion.java:52) at org.apache.camel.impl.DefaultUnitOfWork.done(DefaultUnitOfWork.java:145) at org.apache.camel.processor.UnitOfWorkProcessor.done(UnitOfWorkProcessor.java:82) at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:71) at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67) at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:258) at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:137) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:106) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Thanks Nick -- View this message in context: http://old.nabble.com/FileComponent-Camel-2.2-tp28154138p28154138.html Sent from the Camel Development mailing list archive at Nabble.com.