Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5263EE31E for ; Fri, 8 Feb 2013 10:51:49 +0000 (UTC) Received: (qmail 38847 invoked by uid 500); 8 Feb 2013 10:51:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38808 invoked by uid 500); 8 Feb 2013 10:51:48 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 38783 invoked by uid 99); 8 Feb 2013 10:51:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 10:51:47 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [81.252.56.11] (HELO airbus-sf3.airbus.gmessaging.net) (81.252.56.11) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 10:51:42 +0000 Received: from airbus-sf3.airbus.gmessaging.net (localhost.localdomain [127.0.0.1]) by localhost.airbus.gmessaging.net (Postfix) with SMTP id 4C26B312462C for ; Fri, 8 Feb 2013 11:51:20 +0100 (CET) Received: from de0-mailhub-p03.res.airbus.corp (unknown [44.225.0.149]) by airbus-sf3.airbus.gmessaging.net (Postfix) with ESMTP id 1EF91312443B for ; Fri, 8 Feb 2013 11:51:20 +0100 (CET) Received: from DE0-MAILMBX-P21.res.airbus.corp ([44.225.2.203]) by de0-mailhub-p03.res.airbus.corp ([44.225.0.149]) with mapi; Fri, 8 Feb 2013 11:51:14 +0100 From: "AMARNATH, Balachandar" To: "users@camel.apache.org" Date: Fri, 8 Feb 2013 11:51:11 +0100 Subject: RE: File transfer using ftp failed Thread-Topic: File transfer using ftp failed Thread-Index: Ac4FMLQJyuTIYU6VTPi5kWn2BBOOXwAuTBrA Message-ID: <27930_1360320680_5114D8A8_27930_10841_6_E6472BD072676843ADB8D37E50F4C88D0B08BE4724@DE0-MAILMBX-P21.res.airbus.corp> References: <2566_1360210154_511328EA_2566_8119_1_E6472BD072676843ADB8D37E50F4C88D0B08B9EC9A@DE0-MAILMBX-P21.res.airbus.corp> <28013_1360230230_51137755_28013_7217_1_CAP9Z6QmcfOJ9GrdfFuAoj3YJFtTChMbZuSZrJKS3Wx++K-APMw@mail.gmail.com> <11740_1360238055_511395E6_11740_7423_1_E6472BD072676843ADB8D37E50F4C88D0B08BE3DBF@DE0-MAILMBX-P21.res.airbus.corp> <24744_1360240996_5113A163_24744_3986_1_CAGB5yNmJ_siRxwsC0GPNWnmhCPEAWwg61KAM5+A-bOv=vDAJtg@mail.gmail.com> In-Reply-To: <24744_1360240996_5113A163_24744_3986_1_CAGB5yNmJ_siRxwsC0GPNWnmhCPEAWwg61KAM5+A-bOv=vDAJtg@mail.gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thanks claus Ibsen, I am indeed using the 'Main' to start the camel. What's happening is that r= eplacing component 'ftp://' with 'file:///' is working. When I use 'ftp://= ', it seems that endpoint from("ftp://...") is not recognised. The route he= re is not executed and I don't see any movement of file Regards Bala=20 -----Original Message----- From: Claus Ibsen [mailto:claus.ibsen@gmail.com]=20 Sent: 07 February 2013 18:12 To: users@camel.apache.org Subject: Re: File transfer using ftp failed On Thu, Feb 7, 2013 at 12:54 PM, AMARNATH, Balachandar wrote: > Hi, > > Thanks for the reply, > > But in my case, it looks like it does not even processing the route. I ha= d a simple route as below. > > from("ftp://@:21?password=3D&ftpClient.timeout=3D3000= 0&binary=3Dtrue&move=3D.test")).to("file:///tmp") (whereas 'test' is the re= mote folder that I want to copy remotehost:/home//test) > The program comes out in no time. I ensured I could ftp between two machi= nes, and performed file transfer back and forth. (I used vsftpd server). I = used camel 2.9.5 as the latest camel 2.10.3 was giving some trouble (in fac= t, I did it as advised by one of the members in the list). > See this FAQ http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.h= tml > Regards > Bala > > > > -----Original Message----- > From: Filippo Balicchia [mailto:fbalicchia@gmail.com] > Sent: 07 February 2013 15:13 > To: users@camel.apache.org > Subject: Re: File transfer using ftp failed > > 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://@myip:" > + 21 > + "?password=3D&ftpClient.dataT= imeout=3D30000&binary=3Dtrue&move=3D.downloadfolder"; > } > > public static void main(String args[]) throws Exception { > CamelContext context =3D new DefaultCamelContext(); > > > context.addRoutes(new RouteBuilder() { > // > String fileUrl =3D "file:/tmp/foolder/"; > @Override > public void configure() throws Exception { > from(getDownloadFtpUrl()).process(new Pro= cessor() { > > @Override > public void process(Exchange exch= ange) throws Exception { > > log.info("Ciao Mondo"); > > } > }).to(fileUrl); > > } > }); > > context.start(); > > > What instruction use in process ? > > Regards > > --Filippo > > 2013/2/7 Christian M=FCller : >> 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.AMARNATH@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.AMARNATH@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.ibsen@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 >>> 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 mix= ed >>> up. >>> >>> >>> > >>> > regards >>> > Bala >>> > >>> > -----Original Message----- >>> > From: Claus Ibsen [mailto:claus.ibsen@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 >>> > wrote: >>> >> Hello, >>> >> >>> >> I tried to do a file transfer using apache camel route using the >>> following route >>> >> >>> >> from("ftp://@/etc/?password=3D") >>> >> .process(new Processor() { >>> >> public void process(Exchange exchange) throws Except= ion >>> { >>> >> // 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 class= path >>> >> >>> > >>> > 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 immediat= ely >>> 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: cibsen@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 immediate= ly >>> and delete this e-mail. >>> > Airbus cannot accept any responsibility for the accuracy or completen= ess >>> 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: cibsen@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 vi= rus >>> scanning software but you should take whatever measures you deem to be >>> appropriate to ensure that this message and any attachments are virus f= ree. >>> >>> >>> 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 vi= rus >>> scanning software but you should take whatever measures you deem to be >>> appropriate to ensure that this message and any attachments are virus f= ree. >>> >>> > > This mail has originated outside your organization, either from an extern= al 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 d= isclosed 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 a= nd 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 co= ncerns over the content of this message or its Accuracy or Integrity, pleas= e contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated viru= s scanning software but you should take whatever measures you deem to be ap= propriate to ensure that this message and any attachments are virus free. > --=20 Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@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 dis= closed 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 conc= erns 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 appr= opriate to ensure that this message and any attachments are virus free.