9 Replies Latest reply on Feb 17, 2011 10:15 AM by davsclaus

    FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux

    billjsmithee

      Hello,

       

      Running this code in Windows XP SP 3 works with FUSE 4.3.1/Camel 2.6: (downloads the files)

       

       

       

      Running this same code (Building as an OSGI bundle and installing as an OSGI bundle) does not download files in RHL.  Can anyone run this code as an OSGI bundle to verify that it works in Linux?

       

      Thanks,

        • 1. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
          ffang

          Hi,

           

          Did you see any exception from the servicemix.log?

          And could you use ftp command directly to the machine you want to download file, to see if it works?

           

          Freeman

          • 3. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
            billjsmithee

            I appreciate the responses. 

             

            Yes, I can use the RHEL5.5 command line FTP client and download files. 

             

            The IP address in the sample is an open FTP server on the Web.  The code works in Windows XP SP3 but not in RHEL5.5 (Downloads the files)

             

            I can build and install the bundle, but it does not download files from the FTP server in Linux.  So the link to previous issue isn't exactly the same problem.

             

            Here is a sample of the Log. 

             

            08:47:58,552 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:47:58,552 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:47:58,685 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:47:58,685 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:48:00,354 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:48:00,354 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:48:00,486 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:48:58,553 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:48:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:48:58,686 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:48:58,686 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:49:00,399 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:49:00,399 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:49:00,545 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:49:58,552 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:49:58,552 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:49:58,695 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:49:58,695 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:50:00,467 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:50:00,467 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:50:00,467 | WARN  | us@87.98.200.117 | eFilePollingConsumerPollStrategy | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Trying to recover by disconnecting from remote server forcing a re-connect at next poll: ftp://anonymous@87.98.200.117:21

            08:50:00,467 | DEBUG | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Disconnecting from: ftp://anonymous@87.98.200.117:21

            08:50:00,467 | WARN  | us@87.98.200.117 | eFilePollingConsumerPollStrategy | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Consumer Consumer[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=anonymous%40anonymous.com] could not poll endpoint: ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=anonymous%40anonymous.com caused by: File operation failed: 421 Connection closed, timed out.

                    at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:608)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

                    at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:572)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

                    at org.apache.camel.component.file.remote.FtpConsumer.pollDirectory(FtpConsumer.java:51)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

            Caused by: org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.

                    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:347)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:495)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:537)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTP.cwd(FTP.java:758)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTPClient.changeWorkingDirectory(FTPClient.java:807)[153:org.apache.commons.net:2.2]

                    at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:605)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

            08:50:58,553 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:50:58,553 | DEBUG | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Not connected/logged in, connecting to: ftp://anonymous@87.98.200.117:21

            08:50:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Connecting using FTPClient: org.apache.commons.net.ftp.FTPClient@14beb6

            08:50:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Connecting to ftp://anonymous@87.98.200.117:21 using connection timeout: 10000

            08:50:58,818 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Attempting to login user: anonymous using password: anonymous@anonymous.com

            08:50:59,085 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | User anonymous logged in: true

            08:50:59,215 | INFO  | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Connected and logged in to: ftp://anonymous@87.98.200.117:21

            08:50:59,215 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:50:59,349 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:50:59,349 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:51:01,146 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:51:01,146 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:51:01,279 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:51:58,552 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:51:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:51:58,686 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:51:58,686 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:52:00,226 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:52:00,226 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:52:00,357 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:52:58,553 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:52:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:52:58,688 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:52:58,688 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:53:00,257 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:53:00,257 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:53:00,388 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:53:58,553 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:53:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:53:58,687 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:53:58,687 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:54:00,304 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:54:00,304 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:54:00,304 | WARN  | us@87.98.200.117 | eFilePollingConsumerPollStrategy | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Trying to recover by disconnecting from remote server forcing a re-connect at next poll: ftp://anonymous@87.98.200.117:21

            08:54:00,304 | DEBUG | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Disconnecting from: ftp://anonymous@87.98.200.117:21

            08:54:00,304 | WARN  | us@87.98.200.117 | eFilePollingConsumerPollStrategy | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Consumer Consumer[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=anonymous%40anonymous.com] could not poll endpoint: ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=anonymous%40anonymous.com caused by: File operation failed: 421 Connection closed, timed out.

                    at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:608)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

                    at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:572)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

                    at org.apache.camel.component.file.remote.FtpConsumer.pollDirectory(FtpConsumer.java:51)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

            Caused by: org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received.  Server closed connection.

                    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:347)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:495)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:537)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTP.cwd(FTP.java:758)[153:org.apache.commons.net:2.2]

                    at org.apache.commons.net.ftp.FTPClient.changeWorkingDirectory(FTPClient.java:807)[153:org.apache.commons.net:2.2]

                    at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:605)[200:org.apache.camel.camel-ftp:2.6.0.fuse-00-00]

            08:54:58,553 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:54:58,553 | DEBUG | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Not connected/logged in, connecting to: ftp://anonymous@87.98.200.117:21

            08:54:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Connecting using FTPClient: org.apache.commons.net.ftp.FTPClient@14beb6

            08:54:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Connecting to ftp://anonymous@87.98.200.117:21 using connection timeout: 10000

            08:54:58,818 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Attempting to login user: anonymous using password: anonymous@anonymous.com

            08:54:59,087 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | User anonymous logged in: true

            08:54:59,220 | INFO  | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Connected and logged in to: ftp://anonymous@87.98.200.117:21

            08:54:59,220 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:54:59,352 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:54:59,352 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:55:01,006 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:55:01,006 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:55:01,137 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:55:58,553 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:55:58,553 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:55:58,687 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:55:58,687 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:56:00,505 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:56:00,506 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:56:00,636 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:56:58,552 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

            08:56:58,552 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | getCurrentDirectory()

            08:56:58,684 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory()

            08:56:58,684 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

            08:57:00,224 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | changeCurrentDirectory(/)

            08:57:00,224 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Changing directory: /

            08:57:00,356 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&include=.zip&password=******]

             

             

            Any help would be appreciated. 

             

            Thanks,

            • 4. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
              davsclaus

              Try with stepwise=false on the ftp endpoint. And separator=UNIX to indicate unix style paths.

              • 5. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
                billjsmithee

                Using stepwise=false and separator=UNIX the bundle still does not download files in RHEL5.5.  Camel 2.5 in FUSE 4.3.1 (And FUSE 4.3.0) has the same issue.

                 

                Here is an output of the log with the two new attributes in place:

                 

                11:15:58,515 | DEBUG | ExtenderThread-8 | OsgiSpringCamelContext           | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Route: route2 >>> EventDrivenConsumerRoute[Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false] -> Instrumentation:route[UnitOfWork(Channel[sendTo(Endpoint[file://Test/])])]]

                11:15:58,602 | TRACE | ExtenderThread-8 | ServiceHelper                    | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting service: Consumer[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=anonymous%40anonymous.com&separator=UNIX&stepwise=false]

                11:15:58,602 | DEBUG | ExtenderThread-8 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting consumer: Consumer[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=anonymous%40anonymous.com&separator=UNIX&stepwise=false]

                11:15:58,602 | DEBUG | ExtenderThread-8 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Scheduling poll (fixed rate) with initialDelay: 1000, delay: 60000 (milliseconds) for: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:15:58,638 | INFO  | ExtenderThread-8 | OsgiSpringCamelContext           | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Route: route2 started and consuming from: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:15:58,639 | TRACE | ExtenderThread-8 | ServiceHelper                    | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting service: EventDrivenConsumerRoute[Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false] -> Instrumentation:route[UnitOfWork(Channel[sendTo(Endpoint[file://Test/])])]]

                11:15:59,605 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:15:59,605 | DEBUG | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Not connected/logged in, connecting to: ftp://anonymous@87.98.200.117:21

                11:15:59,605 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Connecting using FTPClient: org.apache.commons.net.ftp.FTPClient@215748

                11:15:59,605 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Connecting to ftp://anonymous@87.98.200.117:21 using connection timeout: 10000

                11:15:59,869 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | Attempting to login user: anonymous using password: anonymous@anonymous.com

                11:16:00,131 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | User anonymous logged in: true

                11:16:00,262 | INFO  | us@87.98.200.117 | FtpConsumer                      | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Connected and logged in to: ftp://anonymous@87.98.200.117:21

                11:16:00,262 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

                11:16:01,997 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:16:59,613 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:16:59,613 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

                11:17:01,167 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:17:59,613 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Starting to poll: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                11:17:59,613 | TRACE | us@87.98.200.117 | FtpOperations                    | 200 - org.apache.camel.camel-ftp - 2.6.0.fuse-00-00 | listFiles()

                11:18:01,319 | TRACE | us@87.98.200.117 | ScheduledPollConsumer            | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Finished polling: Endpoint[ftp://anonymous@87.98.200.117?binary=true&consumer.delay=60000&password=******&separator=UNIX&stepwise=false]

                 

                Thanks,

                • 6. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
                  davsclaus

                  On Windows do you run this as OSGi as well?

                  So the only difference is only the OS?

                   

                  And they download from the same FTP server?

                  And what OS does the FTP server run?

                  • 7. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
                    billjsmithee

                    Yes, the OSGI bundle works in Windows XP SP3.  Yes, the only difference is the OS.  The FTP server is running some flavor of Linux.

                    • 8. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
                      davsclaus

                      Hmm that is interesting. Are both running JDK 1.6?

                       

                      You can maybe try to enable TRACE logging for commons net which is the FTP library used. And see if there is any details why it doesn't work.

                       

                      And as last resort some TCP packet sniffer may reveal the communication happening.

                       

                      And if you have other Unix flavors to test on that would be nice.

                      • 9. Re: FUSE 4.3.0/4.3.1 camel-ftp 2.6 FTP component works in Windows, not  Linux
                        davsclaus

                        Oh also check whether you should run in active or passive mode. There is a passiveMode option you can set on the ftp endpoint.