You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jdpatil <ja...@mclaneco.com> on 2011/08/26 15:35:06 UTC

FTP is not polling the files

I have route
<from uri="ftp://user@server/test?password=pass?recursive=true" />
<to uri="file://C:/home/outfiles" />

I have some files in test directory but when i start the process it is not
downloading the files i get

"FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
connectIfNecessary Connected and logged in to: ftp://user@server:21"

I tried seting passiveMode and binaray option.

--
View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: FTP is not polling the files

Posted by jdpatil <ja...@mclaneco.com>.
I am using following log4j.xml file

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
      debug="true">

      <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
            <param name="Target" value="System.out" />
            <layout class="org.apache.log4j.PatternLayout">
                  <param name="ConversionPattern" value="%5p -%C{1}.%M - %m%n" />
            </layout>
      </appender>

      <logger name="org.apache.camel" additivity="true">
        <level value="TRACE"/>
        <appender-ref ref="stdout"/>
    </logger>

      <logger name="org.apache.commons.net" additivity="true">
        <level value="TRACE"/>
        <appender-ref ref="stdout"/>
    </logger>

      <logger name="org.apache.camel.component.file" additivity="true">
        <level value="TRACE"/>
        <appender-ref ref="stdout"/>
    </logger>


      <root>
            <priority value="ERROR" />
            <appender-ref ref="stdout" />

      </root>

</log4j:configuration>


But when I start my camel process it only showing me initialization debugging statements. I am not seeing any file related debugging statements.  I have tried the DEBUG/TRACE as root priority values.
[9/6/11 11:29:41:574 CDT] 00000030 SystemOut     O log4j: Threshold ="null".
[9/6/11 11:29:41:574 CDT] 00000030 SystemOut     O log4j: Retreiving an instance of org.apache.log4j.Logger.
[9/6/11 11:29:41:574 CDT] 00000030 SystemOut     O log4j: Setting [org.apache.camel] additivity to [true].
[9/6/11 11:29:41:574 CDT] 00000030 SystemOut     O log4j: Level value for org.apache.camel is  [TRACE].
[9/6/11 11:29:41:574 CDT] 00000030 SystemOut     O log4j: org.apache.camel level set to DEBUG
[9/6/11 11:29:41:574 CDT] 00000030 SystemOut     O log4j: Class name: [org.apache.log4j.ConsoleAppender]
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Setting property [target] to [System.out].
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Setting property [conversionPattern] to [%5p -%C{1}.%M - %m%n].
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Adding appender named [stdout] to category [org.apache.camel].
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Retreiving an instance of org.apache.log4j.Logger.
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Setting [org.apache.commons.net] additivity to [true].
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Level value for org.apache.commons.net is  [TRACE].
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: org.apache.commons.net level set to DEBUG
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Adding appender named [stdout] to category [org.apache.commons.net].
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Retreiving an instance of org.apache.log4j.Logger.
[9/6/11 11:29:41:589 CDT] 00000030 SystemOut     O log4j: Setting [org.apache.camel.component.file] additivity to [true].
[9/6/11 11:29:41:605 CDT] 00000030 SystemOut     O log4j: Level value for org.apache.camel.component.file is  [TRACE].
[9/6/11 11:29:41:605 CDT] 00000030 SystemOut     O log4j: org.apache.camel.component.file level set to DEBUG
[9/6/11 11:29:41:605 CDT] 00000030 SystemOut     O log4j: Adding appender named [stdout] to category [org.apache.camel.component.file].
[9/6/11 11:29:41:605 CDT] 00000030 SystemOut     O log4j: Level value for root is  [ERROR].
[9/6/11 11:29:41:605 CDT] 00000030 SystemOut     O log4j: root level set to ERROR
[9/6/11 11:29:41:605 CDT] 00000030 SystemOut     O log4j: Adding appender named [stdout] to category [root].


Thank you for your response.

From: Claus Ibsen-2 [via Camel] [mailto:ml-node+4749407-1370906255-244998@n5.nabble.com]
Sent: Tuesday, August 30, 2011 4:14 AM
To: Jaya Patil
Subject: Re: FTP is not polling the files

Hi

You can configure log levels on the camel components. How you do this
depend on the logging framework you use.

For example with log4j you often configure this in a log4.properties
file (or a xml file)


For example i can enable TRACE logging (most verbose) as follows

log4j.logger.org.apache.commons.net=TRACE
log4j.logger.org.apache.camel.component.file=TRACE


And when I run an unit test in the camel-ftp component I get this
verbose output:

2011-08-30 11:10:56,313 [main                               ] TRACE
FtpOperations                  - Attempting to login user: admin using
password: admin
2011-08-30 11:10:56,316 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 220 Service ready for new user.

2011-08-30 11:10:56,320 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: USER admin
2011-08-30 11:10:56,323 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 331 User name okay, need
password for admin.

2011-08-30 11:10:56,324 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: PASS *****
2011-08-30 11:10:56,331 [pool-3-thread-1                    ] INFO
PASS                           - Login success - admin
2011-08-30 11:10:56,332 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 230 User logged in, proceed.

2011-08-30 11:10:56,333 [main                               ] TRACE
FtpOperations                  - User admin logged in: true
2011-08-30 11:10:56,333 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: TYPE A
2011-08-30 11:10:56,335 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 200 Command TYPE okay.

2011-08-30 11:10:56,336 [main                               ] INFO
RemoteFileProducer             - Connected and logged in to:
Endpoint[ftp://admin@localhost:21801/deletefile?binary=false&delete=true&password=******]
2011-08-30 11:10:56,336 [main                               ] TRACE
FtpOperations                  - buildDirectory(deletefile)
2011-08-30 11:10:56,337 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: PWD
2011-08-30 11:10:56,338 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 257 "/" is current directory.


On Tue, Aug 30, 2011 at 12:04 AM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4749407&i=0>> wrote:

> Thanks for the response. I am using camel 2.5 and it does not have stepwise option. I tried setting passiveMode and binary but it didn’t help.
> I am fairly new to Camel so can you please tell me how to enable the debug logging on the camel ftp and file components?
>
> From: Claus Ibsen-2 [via Camel] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4749407&i=1>]
> Sent: Sunday, August 28, 2011 10:52 PM
> To: Jaya Patil
> Subject: Re: FTP is not polling the files
>
> Hi
>
> I suggest to enable TRACE/DEBUG logging on the camel ftp and file
> components as well as the FTP library (Apache Commons Net) to see what
> is going on.
>
> Likewise you may take a look on the FTP server side, to see if there
> is any clues from the server logs.
>
> It could be anything from security related, to empty folders, to a
> scheduler task not triggering, etc.
>
> There is also the stepwise option you may consider turning on|off. It
> influence how Camel traverse the directories.
> On some system you must use stepwise=true to be able to do that.
>
> And also passive mode should sometimes be enabled or not.
>
>
> On Sat, Aug 27, 2011 at 4:40 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=0>> wrote:
>
>> I am using &between the parameter. I made typo mistake when I was writing the post.
>>
>> From: Claus Ibsen-2 [via Camel] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=1>]
>> Sent: Saturday, August 27, 2011 1:57 AM
>> To: Jaya Patil
>> Subject: Re: FTP is not polling the files
>>
>> Hi
>>
>> You have 2 times ? in the uri. It should be using a & between the parameters.
>>
>>
>> On Fri, Aug 26, 2011 at 3:35 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=0>> wrote:
>>
>>> I have route
>>> <from uri="ftp://user@server/test?password=pass?recursive=true" />
>>> <to uri="file://C:/home/outfiles<file:///C:\home\outfiles><file:///C:\home\outfiles%3cfile:\C:\home\outfiles%3e><file:///C:\home\outfiles%3cfile:\C:\home\outfiles%3e%3cfile:\C:\home\outfiles%3cfile:\C:\home\outfiles%3e%3e>" />
>>>
>>> I have some files in test directory but when i start the process it is not
>>> downloading the files i get
>>>
>>> "FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
>>> connectIfNecessary Connected and logged in to: ftp://user@server:21"
>>>
>>> I tried seting passiveMode and binaray option.
>>>
>>> --
>>> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> FuseSource
>> Email: [hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=1>
>> Web: http://fusesource.com
>> Twitter: davsclaus, fusenews
>> Blog: http://davsclaus.blogspot.com/
>> Author of Camel in Action: http://www.manning.com/ibsen/
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion below:
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4741343.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=2>
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4747944.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
FuseSource
Email: [hidden email]</user/SendEmail.jtp?type=node&node=4749407&i=2>
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4749407.html
To unsubscribe from FTP is not polling the files, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4738079&code=amF5YS5wYXRpbEBtY2xhbmVjby5jb218NDczODA3OXwxMzc2MzEyMjQy>.


--
View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4775103.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP is not polling the files

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can configure log levels on the camel components. How you do this
depend on the logging framework you use.

For example with log4j you often configure this in a log4.properties
file (or a xml file)


For example i can enable TRACE logging (most verbose) as follows

log4j.logger.org.apache.commons.net=TRACE
log4j.logger.org.apache.camel.component.file=TRACE


And when I run an unit test in the camel-ftp component I get this
verbose output:

2011-08-30 11:10:56,313 [main                               ] TRACE
FtpOperations                  - Attempting to login user: admin using
password: admin
2011-08-30 11:10:56,316 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 220 Service ready for new user.

2011-08-30 11:10:56,320 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: USER admin
2011-08-30 11:10:56,323 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 331 User name okay, need
password for admin.

2011-08-30 11:10:56,324 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: PASS *****
2011-08-30 11:10:56,331 [pool-3-thread-1                    ] INFO
PASS                           - Login success - admin
2011-08-30 11:10:56,332 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 230 User logged in, proceed.

2011-08-30 11:10:56,333 [main                               ] TRACE
FtpOperations                  - User admin logged in: true
2011-08-30 11:10:56,333 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: TYPE A
2011-08-30 11:10:56,335 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 200 Command TYPE okay.

2011-08-30 11:10:56,336 [main                               ] INFO
RemoteFileProducer             - Connected and logged in to:
Endpoint[ftp://admin@localhost:21801/deletefile?binary=false&delete=true&password=******]
2011-08-30 11:10:56,336 [main                               ] TRACE
FtpOperations                  - buildDirectory(deletefile)
2011-08-30 11:10:56,337 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - RECEIVED: PWD
2011-08-30 11:10:56,338 [pool-3-thread-1                    ] INFO
FtpLoggingFilter               - SENT: 257 "/" is current directory.


On Tue, Aug 30, 2011 at 12:04 AM, jdpatil <ja...@mclaneco.com> wrote:
> Thanks for the response. I am using camel 2.5 and it does not have stepwise option. I tried setting passiveMode and binary but it didn’t help.
> I am fairly new to Camel so can you please tell me how to enable the debug logging on the camel ftp and file components?
>
> From: Claus Ibsen-2 [via Camel] [mailto:ml-node+4744994-2080575733-244998@n5.nabble.com]
> Sent: Sunday, August 28, 2011 10:52 PM
> To: Jaya Patil
> Subject: Re: FTP is not polling the files
>
> Hi
>
> I suggest to enable TRACE/DEBUG logging on the camel ftp and file
> components as well as the FTP library (Apache Commons Net) to see what
> is going on.
>
> Likewise you may take a look on the FTP server side, to see if there
> is any clues from the server logs.
>
> It could be anything from security related, to empty folders, to a
> scheduler task not triggering, etc.
>
> There is also the stepwise option you may consider turning on|off. It
> influence how Camel traverse the directories.
> On some system you must use stepwise=true to be able to do that.
>
> And also passive mode should sometimes be enabled or not.
>
>
> On Sat, Aug 27, 2011 at 4:40 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=0>> wrote:
>
>> I am using &between the parameter. I made typo mistake when I was writing the post.
>>
>> From: Claus Ibsen-2 [via Camel] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=1>]
>> Sent: Saturday, August 27, 2011 1:57 AM
>> To: Jaya Patil
>> Subject: Re: FTP is not polling the files
>>
>> Hi
>>
>> You have 2 times ? in the uri. It should be using a & between the parameters.
>>
>>
>> On Fri, Aug 26, 2011 at 3:35 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=0>> wrote:
>>
>>> I have route
>>> <from uri="ftp://user@server/test?password=pass?recursive=true" />
>>> <to uri="file://C:/home/outfiles<file:///C:\home\outfiles><file:///C:\home\outfiles%3cfile:\C:\home\outfiles%3e>" />
>>>
>>> I have some files in test directory but when i start the process it is not
>>> downloading the files i get
>>>
>>> "FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
>>> connectIfNecessary Connected and logged in to: ftp://user@server:21"
>>>
>>> I tried seting passiveMode and binaray option.
>>>
>>> --
>>> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> FuseSource
>> Email: [hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=1>
>> Web: http://fusesource.com
>> Twitter: davsclaus, fusenews
>> Blog: http://davsclaus.blogspot.com/
>> Author of Camel in Action: http://www.manning.com/ibsen/
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion below:
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4741343.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=2>
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4744994.html
> To unsubscribe from FTP is not polling the files, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4738079&code=amF5YS5wYXRpbEBtY2xhbmVjby5jb218NDczODA3OXwxMzc2MzEyMjQy>.
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4747944.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

RE: FTP is not polling the files

Posted by jdpatil <ja...@mclaneco.com>.
Thanks for the response. I am using camel 2.5 and it does not have stepwise option. I tried setting passiveMode and binary but it didn’t help.
I am fairly new to Camel so can you please tell me how to enable the debug logging on the camel ftp and file components?

From: Claus Ibsen-2 [via Camel] [mailto:ml-node+4744994-2080575733-244998@n5.nabble.com]
Sent: Sunday, August 28, 2011 10:52 PM
To: Jaya Patil
Subject: Re: FTP is not polling the files

Hi

I suggest to enable TRACE/DEBUG logging on the camel ftp and file
components as well as the FTP library (Apache Commons Net) to see what
is going on.

Likewise you may take a look on the FTP server side, to see if there
is any clues from the server logs.

It could be anything from security related, to empty folders, to a
scheduler task not triggering, etc.

There is also the stepwise option you may consider turning on|off. It
influence how Camel traverse the directories.
On some system you must use stepwise=true to be able to do that.

And also passive mode should sometimes be enabled or not.


On Sat, Aug 27, 2011 at 4:40 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=0>> wrote:

> I am using &between the parameter. I made typo mistake when I was writing the post.
>
> From: Claus Ibsen-2 [via Camel] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=1>]
> Sent: Saturday, August 27, 2011 1:57 AM
> To: Jaya Patil
> Subject: Re: FTP is not polling the files
>
> Hi
>
> You have 2 times ? in the uri. It should be using a & between the parameters.
>
>
> On Fri, Aug 26, 2011 at 3:35 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=0>> wrote:
>
>> I have route
>> <from uri="ftp://user@server/test?password=pass?recursive=true" />
>> <to uri="file://C:/home/outfiles<file:///C:\home\outfiles><file:///C:\home\outfiles%3cfile:\C:\home\outfiles%3e>" />
>>
>> I have some files in test directory but when i start the process it is not
>> downloading the files i get
>>
>> "FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
>> connectIfNecessary Connected and logged in to: ftp://user@server:21"
>>
>> I tried seting passiveMode and binaray option.
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=1>
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4741343.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
FuseSource
Email: [hidden email]</user/SendEmail.jtp?type=node&node=4744994&i=2>
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4744994.html
To unsubscribe from FTP is not polling the files, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4738079&code=amF5YS5wYXRpbEBtY2xhbmVjby5jb218NDczODA3OXwxMzc2MzEyMjQy>.


--
View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4747944.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP is not polling the files

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I suggest to enable TRACE/DEBUG logging on the camel ftp and file
components as well as the FTP library (Apache Commons Net) to see what
is going on.

Likewise you may take a look on the FTP server side, to see if there
is any clues from the server logs.

It could be anything from security related, to empty folders, to a
scheduler task not triggering, etc.

There is also the stepwise option you may consider turning on|off. It
influence how Camel traverse the directories.
On some system you must use stepwise=true to be able to do that.

And also passive mode should sometimes be enabled or not.


On Sat, Aug 27, 2011 at 4:40 PM, jdpatil <ja...@mclaneco.com> wrote:
> I am using &between the parameter. I made typo mistake when I was writing the post.
>
> From: Claus Ibsen-2 [via Camel] [mailto:ml-node+4740641-239054027-244998@n5.nabble.com]
> Sent: Saturday, August 27, 2011 1:57 AM
> To: Jaya Patil
> Subject: Re: FTP is not polling the files
>
> Hi
>
> You have 2 times ? in the uri. It should be using a & between the parameters.
>
>
> On Fri, Aug 26, 2011 at 3:35 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=0>> wrote:
>
>> I have route
>> <from uri="ftp://user@server/test?password=pass?recursive=true" />
>> <to uri="file://C:/home/outfiles<file:///C:\home\outfiles>" />
>>
>> I have some files in test directory but when i start the process it is not
>> downloading the files i get
>>
>> "FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
>> connectIfNecessary Connected and logged in to: ftp://user@server:21"
>>
>> I tried seting passiveMode and binaray option.
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=1>
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4740641.html
> To unsubscribe from FTP is not polling the files, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4738079&code=amF5YS5wYXRpbEBtY2xhbmVjby5jb218NDczODA3OXwxMzc2MzEyMjQy>.
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4741343.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

RE: FTP is not polling the files

Posted by jdpatil <ja...@mclaneco.com>.
I am using &between the parameter. I made typo mistake when I was writing the post.

From: Claus Ibsen-2 [via Camel] [mailto:ml-node+4740641-239054027-244998@n5.nabble.com]
Sent: Saturday, August 27, 2011 1:57 AM
To: Jaya Patil
Subject: Re: FTP is not polling the files

Hi

You have 2 times ? in the uri. It should be using a & between the parameters.


On Fri, Aug 26, 2011 at 3:35 PM, jdpatil <[hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=0>> wrote:

> I have route
> <from uri="ftp://user@server/test?password=pass?recursive=true" />
> <to uri="file://C:/home/outfiles<file:///C:\home\outfiles>" />
>
> I have some files in test directory but when i start the process it is not
> downloading the files i get
>
> "FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
> connectIfNecessary Connected and logged in to: ftp://user@server:21"
>
> I tried seting passiveMode and binaray option.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Claus Ibsen
-----------------
FuseSource
Email: [hidden email]</user/SendEmail.jtp?type=node&node=4740641&i=1>
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4740641.html
To unsubscribe from FTP is not polling the files, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4738079&code=amF5YS5wYXRpbEBtY2xhbmVjby5jb218NDczODA3OXwxMzc2MzEyMjQy>.


--
View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4741343.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP is not polling the files

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You have 2 times ? in the uri. It should be using a & between the parameters.


On Fri, Aug 26, 2011 at 3:35 PM, jdpatil <ja...@mclaneco.com> wrote:
> I have route
> <from uri="ftp://user@server/test?password=pass?recursive=true" />
> <to uri="file://C:/home/outfiles" />
>
> I have some files in test directory but when i start the process it is not
> downloading the files i get
>
> "FtpConsumer   I org.apache.camel.component.file.remote.RemoteFileConsumer
> connectIfNecessary Connected and logged in to: ftp://user@server:21"
>
> I tried seting passiveMode and binaray option.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-is-not-polling-the-files-tp4738079p4738079.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/