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 Wed, 07 Apr 2010 08:36:31 GMT

So I tried that endpoint change again, I tried this already but no different. 

I finally got trace coming through and I did take a look at the source code
and for some reason it's using this as an absolute path instead of a
relative path. Is there any sort of override for that?

2010-04-07 09:19:39,742 [: 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-07 09:19:39,743 [: FileComponent] TRACE GenericFileOnCompletion       
- Commit file strategy:
org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@3d428308
for file:
GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]
2010-04-07 09:19:39,743 [: FileComponent] TRACE
rFileExclusiveReadLockStrategy - Unlocking file:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml.camelLock
2010-04-07 09:19:39,743 [: FileComponent] DEBUG FileUtil                      
- Tried 1 to delete file:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml.camelLock
with result: true
2010-04-07 09:19:39,743 [: FileComponent] TRACE
rFileExclusiveReadLockStrategy - Lock file:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml.camelLock
was deleted: true
2010-04-07 09:19:39,743 [: FileComponent] TRACE DefaultTypeConverter          
- Converting null -> java.lang.String with value: null
2010-04-07 09:19:39,743 [: FileComponent] TRACE DefaultTypeConverter          
- Converting java.lang.String -> java.lang.String with value: /.camel/
2010-04-07 09:19:39,743 [: FileComponent] TRACE DefaultTypeConverter          
- Converting null -> java.lang.String with value: null
2010-04-07 09:19:39,743 [: FileComponent] TRACE DefaultTypeConverter          
- Converting java.lang.String -> java.lang.String with value: /.camel/
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Changing name to: /.camel/
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Normalized endpointPath: /opt/feeds/ebook/in
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Normalized newFileName: /.camel/
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- FileNameOnly: .camel
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- FileName: .camel
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Absolute: true
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Relative path: //.camel
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Absolute path: /.camel/
2010-04-07 09:19:39,743 [: FileComponent] TRACE GenericFile                   
- Name changed to: GenericFile[/.camel/]
2010-04-07 09:19:39,744 [: FileComponent] DEBUG
nericFileRenameProcessStrategy - Renaming file:
GenericFile[/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml]
to: GenericFile[/.camel/]
2010-04-07 09:19:39,744 [: FileComponent] DEBUG FileUtil                      
- Retrying attempt 1 to rename file from:
/opt/feeds/ebook/in/CONFIDENTIAL_UNDER_NDA_SampleCrMetadata-20091216.xml to:
/.camel
...
2010-04-07 09:19:41,748 [: 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-07 09:19:41,759 [: 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)




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


Mime
View raw message