camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Mitchell <nick.mitch...@hmv.co.uk>
Subject Re: FileComponent Camel 2.2
Date Tue, 06 Apr 2010 17:58:23 GMT

Thanks for getting back to me.

The file endpoint is
file:/opt/feeds/ebook/in?sortBy=file:name&include=.*\.xml
The OS is CentOS release 5.4 (Final)

I have changed the log level and this is what it gave me.

2010-04-06 18:56:15,074 [: FileComponent] DEBUG FileConsumer                  
- About to process file:
GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]
using exchange: Exchange[GenericFileMessage with file:
GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]]
...
...
...
2010-04-06 18:52:17,116 [: FileComponent] DEBUG GenericFileOnCompletion       
- Done processing file:
GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]
using exchange: Exchange[GenericFileMessage with body:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]
2010-04-06 18:52:17,121 [: FileComponent] DEBUG FileUtil                      
- Tried 1 to delete file:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml.camelLock
with result: true
2010-04-06 18:52:17,122 [: FileComponent] DEBUG
nericFileRenameProcessStrategy - Renaming file:
GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]
to: GenericFile[/.camel/]
2010-04-06 18:52:17,122 [: FileComponent] DEBUG FileUtil                      
- Retrying attempt 1 to rename file from:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml to:
/.camel
2010-04-06 18:52:18,123 [: FileComponent] DEBUG FileUtil                      
- Retrying attempt 2 to rename file from:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml to:
/.camel
2010-04-06 18:52:19,126 [: FileComponent] DEBUG FileUtil                      
- Tried 3 to rename file:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml to:
/.camel with result: false
2010-04-06 18:52:19,126 [: 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)




Claus Ibsen-2 wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://old.nabble.com/FileComponent-Camel-2.2-tp28154602p28155375.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message