Hi,

with this route and camel-ftp 2.10.2
I Can't reproduce the problem.
It works for me



protected static String getDownloadFtpUrl() {
                return "ftp://<login>@myip:"
                                + 21
                                + 
"?password=<password>&ftpClient.dataTimeout=30000&binary=true&move=.downloadfolder";
        }

        public static void main(String args[]) throws Exception {
                CamelContext context = new DefaultCamelContext();


                context.addRoutes(new RouteBuilder() {
                        //
                        String fileUrl = "file:/tmp/foolder/";
                        @Override
                        public void configure() throws Exception {
                                from(getDownloadFtpUrl()).process(new 
Processor() {

                                        @Override
                                        public void process(Exchange exchange) 
throws Exception {
                                                
                                                log.info("Ciao Mondo");

                                        }
                                }).to(fileUrl);

                        }
                });

                context.start();


What instruction use in process ?

Regards

--Filippo

2013/2/7 Christian Müller <christian.muel...@gmail.com>:
> Can you try 2.10.2 or 2.10.4-SNAPSHOT? 2.10.3 has known issue.
>
> Sent from a mobile device
> Am 07.02.2013 05:09 schrieb "AMARNATH, Balachandar" <
> balachandar.amarn...@airbus.com>:
>
>> Hi,
>>
>> Can someone in the list give me a clue on this issue below to fix ?
>>
>>
>> With thanks and regards
>> Balachandar
>>
>> -----Original Message-----
>> From: AMARNATH, Balachandar [mailto:balachandar.amarn...@airbus.com]
>> Sent: 05 February 2013 14:09
>> To: users@camel.apache.org
>> Subject: RE: File transfer using ftp failed
>>
>> Nope.. I have updated to camel-ftp-2.10.3.jar but still the issue is
>> persisting !
>>
>>
>> -----Original Message-----
>> From: Claus Ibsen [mailto:claus.ib...@gmail.com]
>> Sent: 05 February 2013 13:44
>> To: users@camel.apache.org
>> Subject: Re: File transfer using ftp failed
>>
>> On Tue, Feb 5, 2013 at 9:11 AM, AMARNATH, Balachandar
>> <balachandar.amarn...@airbus.com> wrote:
>> > HI Claus Ibsen,
>> >
>> > Thanks for the information. But then, I have the following jars in
>> classpath but still I am facing the same error,
>> >
>> >
>> > camel-ftp-2.9.2.jar
>> > camel-core-2.10.3.jar
>> > slf4j-api-1.6.6.jar
>> > jsch-0.1.38.jar
>> > commons-net-3.2.jar:
>> > commons-net-3.2-sources.jar
>> >
>>
>> The Camel JARs *MUST* be the same version, you got 2.9.2 and 2.10.3 mixed
>> up.
>>
>>
>> >
>> > regards
>> > Bala
>> >
>> > -----Original Message-----
>> > From: Claus Ibsen [mailto:claus.ib...@gmail.com]
>> > Sent: 05 February 2013 12:45
>> > To: users@camel.apache.org
>> > Subject: Re: File transfer using ftp failed
>> >
>> > On Tue, Feb 5, 2013 at 5:43 AM, AMARNATH, Balachandar
>> > <balachandar.amarn...@airbus.com> wrote:
>> >> Hello,
>> >>
>> >> I tried to do a file transfer using apache camel route using the
>> following route
>> >>
>> >> from("ftp://<user>@<host_ip>/etc/?password=<password>")
>> >>             .process(new Processor() {
>> >>                 public void process(Exchange exchange) throws Exception
>> {
>> >> // do something
>> >>                 }
>> >>             }).to("file:///tmp/");
>> >>
>> >> I end up with the following error,
>> >>
>> >> Exception in thread "main"
>> org.apache.camel.FailedToCreateRouteException: Failed to create route
>> route1: Route... because of Failed to resolve endpoint: due to: No
>> component found with scheme: ftp
>> >>
>> >> I installed camel-ftp and the jar file camel-ftp.jar is in the classpath
>> >>
>> >
>> > You need the transitive JARs as well. eg camel-ftp uses commons net
>> > and jcraft for the actual FTP libraries.
>> > If  you use maven then its very easy as just depend on camel-ftp and
>> > Maven will do that for you.
>> >
>> > If not using maven you need to add those JARS manually.
>> >
>> >
>> >
>> >> Any hint will be highly appreciated
>> >>
>> >>
>> >>
>> >> With thanks and regards
>> >> Balachandar
>> >>
>> >>
>> >>
>> >>
>> >> The information in this e-mail is confidential. The contents may not be
>> disclosed or used by anyone other than the addressee. Access to this e-mail
>> by anyone else is unauthorised.
>> >> If you are not the intended recipient, please notify Airbus immediately
>> and delete this e-mail.
>> >> Airbus cannot accept any responsibility for the accuracy or
>> completeness of this e-mail as it has been sent over public networks. If
>> you have any concerns over the content of this message or its Accuracy or
>> Integrity, please contact Airbus immediately.
>> >> All outgoing e-mails from Airbus are checked using regularly updated
>> virus scanning software but you should take whatever measures you deem to
>> be appropriate to ensure that this message and any attachments are virus
>> free.
>> >>
>> >
>> >
>> >
>> > --
>> > Claus Ibsen
>> > -----------------
>> > Red Hat, Inc.
>> > FuseSource is now part of Red Hat
>> > Email: cib...@redhat.com
>> > Web: http://fusesource.com
>> > Twitter: davsclaus
>> > Blog: http://davsclaus.com
>> > Author of Camel in Action: http://www.manning.com/ibsen
>> >
>> > This mail has originated outside your organization, either from an
>> external partner or the Global Internet.
>> > Keep this in mind if you answer this message.
>> >
>> >
>> >
>> > The information in this e-mail is confidential. The contents may not be
>> disclosed or used by anyone other than the addressee. Access to this e-mail
>> by anyone else is unauthorised.
>> > If you are not the intended recipient, please notify Airbus immediately
>> and delete this e-mail.
>> > Airbus cannot accept any responsibility for the accuracy or completeness
>> of this e-mail as it has been sent over public networks. If you have any
>> concerns over the content of this message or its Accuracy or Integrity,
>> please contact Airbus immediately.
>> > All outgoing e-mails from Airbus are checked using regularly updated
>> virus scanning software but you should take whatever measures you deem to
>> be appropriate to ensure that this message and any attachments are virus
>> free.
>> >
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>> Email: cib...@redhat.com
>> Web: http://fusesource.com
>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>
>> This mail has originated outside your organization, either from an
>> external partner or the Global Internet.
>> Keep this in mind if you answer this message.
>>
>>
>>
>> The information in this e-mail is confidential. The contents may not be
>> disclosed or used by anyone other than the addressee. Access to this e-mail
>> by anyone else is unauthorised.
>> If you are not the intended recipient, please notify Airbus immediately
>> and delete this e-mail.
>> Airbus cannot accept any responsibility for the accuracy or completeness
>> of this e-mail as it has been sent over public networks. If you have any
>> concerns over the content of this message or its Accuracy or Integrity,
>> please contact Airbus immediately.
>> All outgoing e-mails from Airbus are checked using regularly updated virus
>> scanning software but you should take whatever measures you deem to be
>> appropriate to ensure that this message and any attachments are virus free.
>>
>>
>> The information in this e-mail is confidential. The contents may not be
>> disclosed or used by anyone other than the addressee. Access to this e-mail
>> by anyone else is unauthorised.
>> If you are not the intended recipient, please notify Airbus immediately
>> and delete this e-mail.
>> Airbus cannot accept any responsibility for the accuracy or completeness
>> of this e-mail as it has been sent over public networks. If you have any
>> concerns over the content of this message or its Accuracy or Integrity,
>> please contact Airbus immediately.
>> All outgoing e-mails from Airbus are checked using regularly updated virus
>> scanning software but you should take whatever measures you deem to be
>> appropriate to ensure that this message and any attachments are virus free.
>>
>>

Reply via email to