Hello Filippo, just tried the same code with jdk 7: java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
but the problem persists. Would be great if you would share your maven test project Which OS are you using? regards Christian ________________________________ * Von: Filippo Balicchia <fbalicc...@gmail.com>An: users@camel.apache.org; Christian Schäfer <syrious3...@yahoo.de> Gesendet: 7:49 Montag, 11.Februar 2013 Betreff: Re: Files cannot be moved on FTP Hi Christian, That line tells how the mbean's attributes are valued to be registered Anyway I have re-run my simple example and if look log http://dl.dropbox.com/u/86667715/camelftp/logWith2_10_3v2.txt now the line are equals. Now, to understand if it a bug we must put ourselves in a position to reproduce the problem. With unit test or specifying exactly the environment. Other different from you is I use jvm "1.7.0_13" From ftp server side what log say ? If can be helpful I can share with you my little maven project Regards --Filippo 2013/2/11 Christian Schäfer <syrious3...@yahoo.de>: > Interesting line: "ilePollingConsumerPollStrategy WARN Trying to recover by > disconnecting from remote server forcing a re-connect at next poll:" > > whereas I don't understand that behaviour.as it's also not an credential > problem which would give: > > "Could not connect to: ...File operation failed: 530 Login incorrect." > > Just diffed our logs (ran on camel 2.10.3): > https://dl.dropbox.com/u/34369176/camel%20ftp%20move%20prob/diff/logWith2_10_3.txt > https://dl.dropbox.com/u/34369176/camel%20ftp%20move%20prob/diff/mylog.txt > > Found another interesting point at the beginning: > > DefaultManagementAgent DEBUG Registered MBean with ObjectName: > org.apache.camel:context=user-PC/camel-1,type=context,name="camel-1" > > > which is in your log: > > DefaultManagementAgent DEBUG Registered MBean with ObjectName: > org.apache.camel:context=IDEA/camel-1,type=components,name="ftp" > > > A noticeable difference? > > > > ________________________________ > Von: Christian Schäfer <syrious3...@yahoo.de> > An: "users@camel.apache.org" <users@camel.apache.org> > Gesendet: 23:32 Sonntag, 10.Februar 2013 > Betreff: Re: Files cannot be moved on FTP > > thanks for the tip..will check that and report back > > > > regards > Christian > > > ________________________________ > Von: Filippo Balicchia <fbalicc...@gmail.com> > An: users@camel.apache.org; Christian Schäfer <syrious3...@yahoo.de> > Gesendet: 12:07 Samstag, 9.Februar 2013 > Betreff: Re: Files cannot be moved on FTP > > Hi Christian, > > if try to make a diff between our logs files You will see that are > equals except for a row > The line is > [@ftpserver.com:21/httpdocs/temp] ilePollingConsumerPollStrategy WARN > Trying to recover by disconnecting from remote server forcing a > re-connect at next poll: ftp://us...@ftpserver.com:21. > > Try investigate in that direction. > > Regards > > --Filippo > > 2013/2/9 Christian Schäfer <syrious3...@yahoo.de>: >> As the behaviour differs (at least in my case) I didn't find it >> useful/correct to reopen the issue. >> >> I added a link to the old issue noticing that ftp the move problem could be >> related to it. >> >> However, in the meantime I'm quite confused as I recreated the issue on two >> different camel projects >> on two different machines with 2 different ftp servers whereas Filippo got >> it working with the same code. >> >> >> >> ________________________________ >> Von: Christian Müller <christian.muel...@gmail.com> >> An: users@camel.apache.org >> Gesendet: 20:05 Freitag, 8.Februar 2013 >> Betreff: Re: Files cannot be moved on FTP >> >> We have a JIRA for this issue and it should already be fixed in Camel >> 2.10.4-SNAPSHOT, if I remember right. >> If not, feel free to reopen it... >> >> Sent from a mobile device >> Am 07.02.2013 15:59 schrieb "Christian Schäfer" <syrious3...@yahoo.de>: >> >> Hi Filipp, >> >> thanks for testing..I just adapted your code to my use case and keep >> getting the described behaviour >> (no file moving with 2.10.3, 2.10.4-SNAPSHOT ; moving works with 2.10.2) >> >> The anonymized test case: >> >> @Test >> public void testFTPMove() throws Exception{ >> context.addRoutes(new RouteBuilder() { >> @Override >> public void configure() throws Exception { >> from("ftp://u...@ftpserver.com:21" + >> "/folder/subfolder/" + >> "?password=mypassword" + >> "&ftpClient.dataTimeout=30000" + >> "&binary=true" + >> "&move=.success" + >> "&antInclude=file*.txt") >> .log("${body}"); >> } >> }); >> Thread.sleep(3000); >> context.stop(); >> } >> >> >> >> ________________________________ >> Von: Filippo Balicchia <fbalicc...@gmail.com> >> An: Christian Schäfer <syrious3...@yahoo.de> >> Gesendet: 11:58 Donnerstag, 7.Februar 2013 >> Betreff: Re: Files cannot be moved on FTP >> >> Hi Christian, >> >> I am unable to give you an idea to solve the problem in a clean way >> >> with this piece of code in my environment works with 2.10.2 and 2.10.3. >> public class ftpExample { >> >> protected static String getDownloadFtpUrl() { >> return "ftp://@:" >> + 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/download/"; >> >> @Override >> public void configure() throws Exception { >> from(getDownloadFtpUrl()).to(fileUrl); >> >> } >> }); >> >> context.start(); >> Thread.sleep(1000000); >> >> context.stop(); >> } >> } >> >> >> >> Client camel route is installed on linuxbox and ftp server is >> installed on windows box >> and use http://mina.apache.org/ftpserver-project/index.html >> >> >> Could you please share your endpoint conf >> I have to migrate too short routes from version 2.10.2 to 2.10.3 ;-) >> >> Regards >> --Filippo >> >> >> >> >> 2013/2/7 Christian Schäfer <syrious3...@yahoo.de>: >>> Sure the ftp user got permissions to write and move. >>> >>> Btw. I just tried camel version 2.10.2 and it works..but it would be >> better >>> to get it working on 2.10.3 because all routes were tested on this >> version. >>> >>> -- >>> Christian >>> ________________________________ >>> Von: Filippo Balicchia <fbalicc...@gmail.com> >>> An: users@camel.apache.org; Christian Schäfer <syrious3...@yahoo.de> >>> Gesendet: 11:02 Donnerstag, 7.Februar 2013 >>> Betreff: Re: Files cannot be moved on FTP >>> >>> Hi Christian, >>> >>> I try move directive with camel-ftp 2.10.3 and It works for me. >>> >>> Stupid question >>> Do you have write permissions on sever ? >>> Regards >>> >>> --Filippo >>> >>> 2013/2/7 Christian Schäfer <syrious3...@yahoo.de>: >>>> Hello, >>>> >>>> I'm reading files from a ftp server with ftp camel component (camel >>>> version 2.10.3) by pattern using antInclude=file*.txt >>>> Reading works but after processing the files cannot be moved to the >> folder >>>> specified by "move" or "moveFailed". >>>> Instead it logs: >>>> >>>> Cannot change directory to: \\. Code: 550]: >>>> org.apache.camel.component.file.GenericFileOperationFailedException: File >>>> operation failed: 550 Failed to change directory. >>>> >>>> As I expected that it's related to the problem described in: >>>> >>>> >> http://mail-archives.apache.org/mod_mbox/camel-users/201301.mbox/%3CCAF8t5Xt222i+WfuaswfdAdyN=8p-k62txd7ucywsy_yjcvm...@mail.gmail.com%3E >>>> https://issues.apache.org/jira/browse/CAMEL-5989 >>>> >>>> I tried camel version 2.10.4-SNAPSHOT but the problem persists. >>>> >>>> The ftp user I'm using has the requried permission to move files because >>>> moving files works with ftp clients (filezilla, total commander) >>>> >>>> Any suggestion to resolve this, please? >>>> >>>> >>>> regards, >>>> Christian >>> >>>