Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: FTP inbound channel adapter

  1. #11
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    The simplest FTP example is in the sample repo that was pointed out by Brandon earlier. My bigger concern is are you sure you are using the latest snapshot? The problem you are describing is exactly what was reported earlier and was fixed with that issue

  2. #12

    Default

    I have downloaded the 2.0.1 build and am sure that i have got that in my classpath in STS.

    please check anything obviously wrong in the attached xml configuration file.

    This xml with remote-directory="test" writes a <inputfilename>.xml.writting file and error with 550 failed to open file.

    I could do same operation (get) outside on windows cmd line being same user. So I dont think any permission issue.
    Attached Files Attached Files

  3. #13
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Try to put a '/' at the end of the remote-directory (e.g. remote-directory="test/")

  4. #14

    Default

    no good -

    when I put test/ with localdirectory file:c:/test/out it seems creating a file with .writting and error on console saying test/\filename.xml . server replied 501 invalid file or file name

    "test\" - is not working and not giving any error either. I tried most of the possible combinations but seems no result.

    Just wanted to make sure do i need a file out bound to write the file or anything like that. I have tried only with ftp inbound and stderror for error channel.

    I am stuck and dont have much time to finish this task so might go and use apache ftpclient directly.
    Last edited by arungn; Dec 15th, 2010 at 03:22 AM.

  5. #15
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Well one thing i noticed is that you using fileType=3. We only support binary (2) and ascii (0) for now, so I am not sure if that causes the issue.

    Also
    What is your FTP server and what platform it is running on?
    I am also assuming that you transferring it to windows?
    Can you transfer it through CLI (ftp get)?

    Could you also make sure that your program does not exit before the file is fully transferred in case your file is big.

    Can you also look at the FTP samples? It has both Inbound and Outbound sample.

  6. #16

    Default

    ok. I will try the suggested options and get back to you.

    Thanks

  7. #17
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Also, if you still have an issue but somehow get it to work with FTPclient directly it would be nice to compare the code, since it seem to be a platform/environment specific issue which I can't reproduce.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •