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: Camel 2.1 FTP Component issue with tempPrefix or tempFileName
Date Mon, 09 Nov 2009 14:16:53 GMT
Hi

Could you create a ticket in JIRA.

And also pin point exactly which file is that you mean when you say
"when the destination file exists".
- is it the temp file
- is it the final destination file

What OS do you use.


On Mon, Nov 9, 2009 at 3:07 PM, mcrive <mcrive@optasportsdata.com> wrote:
>
> Hi,
> I am using FTP component to push files via FTP.
> I am facing issues pushing a file on subfolder when using tempPrefix or
> tempFileName.
>
> route sample:
>
> from("direct:start").to("ftp://username@ipaddress?password=mypass&fileName=./camel/test/message.txt&tempFileName=${file:name.noext}.tmp");
>
> no errors are raised if the destination file doesn't exists, if it exists
> following error is raised:
>
> Exception in thread "main" org.apache.camel.CamelExecutionException:
> Exception occurred during execution on the exchange: Exchange[Message:
> Message content]
>        at
> org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1055)
>        at
> org.apache.camel.util.ExchangeHelper.extractResultBody(ExchangeHelper.java:446)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:431)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:427)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:112)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:117)
>        at com.opta.camel.test.FTPTester.main(FTPTester.java:30)
> Caused by: java.lang.NullPointerException
>        at
> org.apache.camel.component.file.remote.FtpOperations.existsFile(FtpOperations.java:372)
>        at
> org.apache.camel.component.file.GenericFileProducer.processExchange(GenericFileProducer.java:92)
>        at
> org.apache.camel.component.file.remote.RemoteFileProducer.process(RemoteFileProducer.java:52)
>        at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:86)
>        at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:84)
>        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
>        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:83)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at
> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>        at
> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>        at
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:85)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:232)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:162)
>        at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
>        at
> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>        at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:201)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
>        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.direct.DirectProducer.process(DirectProducer.java:45)
>        at
> org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:179)
>        at
> org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:161)
>        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
>        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:160)
>        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:98)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:97)
>        at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:110)
>        ... 2 more
>
>
> --
> View this message in context: http://old.nabble.com/Camel-2.1-FTP-Component-issue-with-tempPrefix-or-tempFileName-tp26266983p26266983.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