Files cannot be moved on FTP

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Files cannot be moved on FTP

ChristianSchaefer
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_YjcvMjOQ@...%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
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Filippo Balicchia-2
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 <[hidden email]>:

> 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_YjcvMjOQ@...%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
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
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 <[hidden email]>
An: [hidden email]; Christian Schäfer <[hidden email]>
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 <[hidden email]>:

> 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_YjcvMjOQ@...%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
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
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://[hidden email]: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 <[hidden email]>
An: Christian Schäfer <[hidden email]>
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 <[hidden email]>:

> 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 <[hidden email]>
> An: [hidden email]; Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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_YjcvMjOQ@...%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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Christian Mueller
Administrator
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" <[hidden email]>:

> 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://[hidden email]: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 <[hidden email]>
> An: Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
> > 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 <[hidden email]>
> > An: [hidden email]; Christian Schäfer <[hidden email]>
> > 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 <[hidden email]>:
> >> 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_YjcvMjOQ@...%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
> >
> >
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Christian Mueller
Administrator
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" <[hidden email]>:

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://[hidden email]: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 <[hidden email]>
An: Christian Schäfer <[hidden email]>
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 <[hidden email]>:
> 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 <[hidden email]>
> An: [hidden email]; Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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_YjcvMjOQ@...%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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Filippo Balicchia-2
Hi all,

probably I don't understand the problem but directive move in
camel-ftp continues to works for me.

I have make 3 test 2 in a real enviroment and 1 unit test.
I use Ftp Url as indicated in the mail

* Using class
http://dl.dropbox.com/u/86667715/camelftp/ftpExample.java
in real enviroment with version 2.10.3 and 2.10.4-SNAPSHOT
I get the following log
http://dl.dropbox.com/u/86667715/camelftp/logWith2_10_3.txt
and
http://dl.dropbox.com/u/86667715/camelftp/logWith2_10_4_SNAPSHOT.txt

*UnitTest it works for me again
http://dl.dropbox.com/u/86667715/camelftp/FromFtpMoveFileTestBug.java


I forget something  ?

Regards

--Filippo


2013/2/8 Christian Müller <[hidden email]>:

> 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" <[hidden email]>:
>
> 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://[hidden email]: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 <[hidden email]>
> An: Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]; Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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_YjcvMjOQ@...%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
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
Hello Filippo, hello Camel users

thanks a lot for testing.
I just ran your test ftpExample.java with my ftp server and credentials on camel 2.10.3.
This time I used another FTP server and got the same error as reported see:

https://dl.dropbox.com/u/34369176/camel%20ftp%20move%20prob/log.txt


Wanted to run the test FromFtpMoveFileTestBug.java on 2.10.4-SNAPSHOT but my IDE strangely can't resolve it currently although repo is added to parent pom:

    <repositories>
        <repository>
            <id>apache.snapshots</id>
            <name>Apache Development Snapshot Repository</name>
            <url>https://repository.apache.org/content/repositories/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>


Btw maybe dependencies could be the root cause of the move problem.
So here "my" poms..whereas it's essentially from the camel in action book:

parent pom: https://dl.dropbox.com/u/34369176/camel%20ftp%20move%20prob/pom-parent.xml
module pom: https://dl.dropbox.com/u/34369176/camel%20ftp%20move%20prob/pom.xml


Or may be a problem with my jdk version (jdk1.6.0_24) ?


regards
Christian


________________________________
 Von: Filippo Balicchia <[hidden email]>
An: [hidden email]
Gesendet: 8:26 Samstag, 9.Februar 2013
Betreff: Re: Files cannot be moved on FTP
 
Hi all,

probably I don't understand the problem but directive move in
camel-ftp continues to works for me.

I have make 3 test 2 in a real enviroment and 1 unit test.
I use Ftp Url as indicated in the mail

* Using class
http://dl.dropbox.com/u/86667715/camelftp/ftpExample.java
in real enviroment with version 2.10.3 and 2.10.4-SNAPSHOT
I get the following log
http://dl.dropbox.com/u/86667715/camelftp/logWith2_10_3.txt
and
http://dl.dropbox.com/u/86667715/camelftp/logWith2_10_4_SNAPSHOT.txt

*UnitTest it works for me again
http://dl.dropbox.com/u/86667715/camelftp/FromFtpMoveFileTestBug.java


I forget something  ?

Regards

--Filippo


2013/2/8 Christian Müller <[hidden email]>:

> 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" <[hidden email]>:
>
> 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://[hidden email]: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 <[hidden email]>
> An: Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]; Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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_YjcvMjOQ@...%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
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
In reply to this post by Christian Mueller
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 <[hidden email]>
An: [hidden email]
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" <[hidden email]>:

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://[hidden email]: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 <[hidden email]>
An: Christian Schäfer <[hidden email]>
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 <[hidden email]>:
> 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 <[hidden email]>
> An: [hidden email]; Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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_YjcvMjOQ@...%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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Filippo Balicchia-2
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://[hidden email]:21.

Try investigate in that direction.

Regards

--Filippo

2013/2/9 Christian Schäfer <[hidden email]>:

> 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 <[hidden email]>
> An: [hidden email]
> 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" <[hidden email]>:
>
> 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://[hidden email]: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 <[hidden email]>
> An: Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]; Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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_YjcvMjOQ@...%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
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
thanks for the tip..will check that and report back


 
regards
Christian


________________________________
 Von: Filippo Balicchia <[hidden email]>
An: [hidden email]; Christian Schäfer <[hidden email]>
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://[hidden email]:21.

Try investigate in that direction.

Regards

--Filippo

2013/2/9 Christian Schäfer <[hidden email]>:

> 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 <[hidden email]>
> An: [hidden email]
> 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" <[hidden email]>:
>
> 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://[hidden email]: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 <[hidden email]>
> An: Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]; Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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_YjcvMjOQ@...%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
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
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 <[hidden email]>
An: "[hidden email]" <[hidden email]>
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 <[hidden email]>
An: [hidden email]; Christian Schäfer <[hidden email]>
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://[hidden email]:21.

Try investigate in that direction.

Regards

--Filippo

2013/2/9 Christian Schäfer <[hidden email]>:

> 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 <[hidden email]>
> An: [hidden email]
> 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" <[hidden email]>:
>
> 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://[hidden email]: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 <[hidden email]>
> An: Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]; Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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_YjcvMjOQ@...%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
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Filippo Balicchia-2
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 <[hidden email]>:

> 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 <[hidden email]>
> An: "[hidden email]" <[hidden email]>
> 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 <[hidden email]>
> An: [hidden email]; Christian Schäfer <[hidden email]>
> 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://[hidden email]:21.
>
> Try investigate in that direction.
>
> Regards
>
> --Filippo
>
> 2013/2/9 Christian Schäfer <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]
>> 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" <[hidden email]>:
>>
>> 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://[hidden email]: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 <[hidden email]>
>> An: Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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 <[hidden email]>
>>> An: [hidden email]; Christian Schäfer <[hidden email]>
>>> 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 <[hidden email]>:
>>>> 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_YjcvMjOQ@...%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
>>>
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

ChristianSchaefer
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 <[hidden email]>An: [hidden email]; Christian Schäfer <[hidden email]>
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 <[hidden email]>:

> 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 <[hidden email]>
> An: "[hidden email]" <[hidden email]>
> 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 <[hidden email]>
> An: [hidden email]; Christian Schäfer <[hidden email]>
> 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://[hidden email]:21.
>
> Try investigate in that direction.
>
> Regards
>
> --Filippo
>
> 2013/2/9 Christian Schäfer <[hidden email]>:
>> 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 <[hidden email]>
>> An: [hidden email]
>> 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" <[hidden email]>:
>>
>> 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://[hidden email]: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 <[hidden email]>
>> An: Christian Schäfer <[hidden email]>
>> 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 <[hidden email]>:
>>> 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 <[hidden email]>
>>> An: [hidden email]; Christian Schäfer <[hidden email]>
>>> 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 <[hidden email]>:
>>>> 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_YjcvMjOQ@...%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
>>>
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Files cannot be moved on FTP

Filippo Balicchia-2
Hi Christian,
please download it from
http://dl.dropbox.com/u/86667715/camelftp/ftproute.zip.

I tested it with 32 and 64 bit linux box from client side and the ftp
server that i used was
http://mina.apache.org/ftpserver-project/index.html an i was installed on
windows box

Regards.

--Filippo


2013/2/12 Christian Schäfer <[hidden email]>

> 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 <[hidden email]>An:
> [hidden email]; Christian Schäfer <[hidden email]>
> 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 <[hidden email]>:
> > 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 <[hidden email]>
> > An: "[hidden email]" <[hidden email]>
> > 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 <[hidden email]>
> > An: [hidden email]; Christian Schäfer <[hidden email]>
> > 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://[hidden email]:21.
> >
> > Try investigate in that direction.
> >
> > Regards
> >
> > --Filippo
> >
> > 2013/2/9 Christian Schäfer <[hidden email]>:
> >> 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 <[hidden email]>
> >> An: [hidden email]
> >> 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" <[hidden email]>:
> >>
> >> 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://[hidden email]: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 <[hidden email]>
> >> An: Christian Schäfer <[hidden email]>
> >> 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 <[hidden email]>:
> >>> 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 <[hidden email]>
> >>> An: [hidden email]; Christian Schäfer <[hidden email]>
> >>> 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 <[hidden email]>:
> >>>> 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_YjcvMjOQ@...%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
> >>>
> >>>
>