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 <fbalicc...@gmail.com>
An: users@camel.apache.org 
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 <christian.muel...@gmail.com>:
> 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
>>
>>

Reply via email to