Hi There is a bug in commons-net 3.2. You can downgrade to 3.1 or try the new 3.3. release.
On Sun, Jun 23, 2013 at 9:02 PM, lassesvestergaard <[email protected]> wrote: > Hi all. > > My first post here. > > I have been trying to learn Apache camel for a while now, and I think I get > the basics. Currently I'm working with the FTP component, but there seems to > be a problem. Here is my route: > > from("ftp://[email protected]?password=hidden&binary=true").process( > new Processor() { > public void process(Exchange exchange) throws Exception { > System.out.println("bla"); > File body = (File) exchange.getIn().getBody(); > if (body != null) { > System.out.println("bli"); > System.out.println(body.listFiles()); > System.out.println("blu"); > } > } > }); > > I simply want to consume files and folders from a specific FTP server. In my > testings I, at some point, made a FTP producer instead of a consumer (by > accident :-) ), and thereby I created both new files and folders on the FTP > server. This means that I know the connection is ok, and I can alter the FTP > server. The thing is that I can't get the FTP component fetch files and > folders. I get the following errors: > > ilePollingConsumerPollStrategy WARN Trying to recover by disconnecting from > remote server forcing a re-connect at next poll: ftp:// > > org.apache.camel.component.file.GenericFileOperationFailedException: File > operation failed: 550 Failed to change directory. > > I have been googling around but haven't been able to find a solution yet. > > I have Apache Camel 2.11.0 which I got about a week ago, and I use Maven. > I'm just using the default Maven repository that Netbeans 7.3 has > implemented. I'm working on a macbook pro with Mountain Lion, and I don't > know what the FTP server is, because I don't have administrator access to > it. > > When I log into the FTP server through Filezilla, I can see that the main > folder is "/", and there are two folders named "bbr" and "power". Each of > the two holds csv files. > > I have tried all the varieties of the url I could think of: > > [email protected] > [email protected]/ > [email protected]// > [email protected]/bbr > [email protected]//bbr > [email protected]//bbr/ > [email protected]/bbr/ > > Do you have any suggestions? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Cannot-change-directory-to-Code-550-on-FTP-component-tp5734612.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
