camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: FileComponent Camel 2.2
Date Tue, 06 Apr 2010 17:15:22 GMT
Hi

Can you enable TRACE logging for the following name:

org.apache.camel.component.file.GenericFile

It should log how it computes the renamed filename.

Also post how you have configured the FILE endpoint.
And what OS are you using?



On Tue, Apr 6, 2010 at 6:55 PM, Nick Mitchell <nick.mitchell@hmv.co.uk> wrote:
>
> Hi,
>
> Apologies I posted this on the camel development forum too, but then
> realised that might be the wrong place.
>
> 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-tp28154602p28154602.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message