[
https://issues.apache.org/jira/browse/CAMEL-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049825#comment-13049825
]
Claus Ibsen commented on CAMEL-4105:
------------------------------------
I can see you use a FuseSource product. If you are a FuseSource subscriber then
I suggest to use that channel to get help with your issue. They can provide you
with a solution for your current version so you dont have to do a upgrade.
That said I am adding more logic in the ScheduledPollConsumer so we do a full
try .. catch(Error e) to catch any kind of errors thrown to avoid the thread
from dying. This may possible cause the JDK scheduled thread pool to fail
scheduling the task.
Also I am adding a runLoggingLevel option you can use to enable to configure a
logging level that logs: START, COMPLETE on the scheduled task. Then that may
help us/you to see when it stops logging that. Likewise there is a ERROR that
logs all thrown error from the thread.
> Thread controlling FTP Polling Process dies
> -------------------------------------------
>
> Key: CAMEL-4105
> URL: https://issues.apache.org/jira/browse/CAMEL-4105
> Project: Camel
> Issue Type: Bug
> Components: camel-ftp
> Affects Versions: 2.6.0
> Environment: apache-activemq-fuse-01-00,
> apache-camel-2.6.0-fuse-00-00, Java jdk1.6.0_25
> Reporter: Billy Buzzard
> Assignee: Claus Ibsen
>
> I have several threads each polling a different FTP Remote folder location.
> This works fine for a couple of weeks then one or more FTP Threads die
> (disappear). I'm going to attach a snippet from my log file below. Notice
> that normally the connection to the FTP site does not exists. The connection
> is then made and the folders are checked then the FTP process disconnects.
> Some of the folders are on the same remote FTP site and I don't know if that
> causes a problem or not.
> The first time I notice that the thread is dead is when the code starts
> checking the FTP threads to see if they are connected and I notices that not
> all of the thread are listed.
> *** LOG SNIPPET ***
> 2011-06-13 11:40:00,531 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:40:00,609 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #6
> - ftp://[email protected]/Outbound/Vendors
> 2011-06-13 11:40:00,609 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:40:00,609 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:40:00,609 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #2
> - ftp://[email protected]/Outbound/TransportXML
> 2011-06-13 11:40:00,905 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #6
> - ftp://[email protected]/Outbound/Vendors
> 2011-06-13 11:40:00,911 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #2
> - ftp://[email protected]/Outbound/TransportXML
> 2011-06-13 11:40:00,914 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:40:00,918 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:40:01,184 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:40:01,470 | DEBUG | Took 0.565 seconds to poll:
> Outbound/Vendors | org.apache.camel.component.file.remote.FtpConsumer | Camel
> (camel) thread #6 - ftp://[email protected]/Outbound/Vendors
> 2011-06-13 11:40:01,470 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #6
> - ftp://[email protected]/Outbound/Vendors
> 2011-06-13 11:40:01,562 | DEBUG | Took 0.650 seconds to poll:
> Outbound/TransportXML | org.apache.camel.component.file.remote.FtpConsumer |
> Camel (camel) thread #2 - ftp://[email protected]/Outbound/TransportXML
> 2011-06-13 11:40:01,562 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #2
> - ftp://[email protected]/Outbound/TransportXML
> 2011-06-13 11:40:01,582 | DEBUG | Took 0.668 seconds to poll: Outbound/AP |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:40:01,583 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:40:01,583 | DEBUG | Took 0.665 seconds to poll:
> Outbound/Customers | org.apache.camel.component.file.remote.FtpConsumer |
> Camel (camel) thread #5 - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:40:01,583 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:40:01,877 | DEBUG | Took 0.693 seconds to poll: outbound |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:40:01,877 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:40:46,452 | INFO | src=Ftp,srcTime=2011-06-13
> 11:39:03.418,dst=ROUTER,file=/esb/ToRouter/Binary/CARRIER/JBHLOW/TO_BNSF_DATA/HJBT110613113850.EDI,modified=2011-06-13
> 11:38:56.000,size=264 | Inbound | DefaultMessageListenerContainer-1
> 2011-06-13 11:40:46,465 | INFO | src=Ftp,srcTime=2011-06-13
> 11:39:03.418,dst=Edi,file=Edi-CARRIER/JBHLOW/TO_BNSF_DATA/HJBT110613113850.EDI,modified=2011-06-13
> 11:38:56.000,size=264 | DstEdi | DefaultMessageListenerContainer-1
> 2011-06-13 11:41:00,524 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:41:00,583 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #6
> - ftp://[email protected]/Outbound/Vendors
> 2011-06-13 11:41:00,594 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:41:00,594 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:41:00,594 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #2
> - ftp://[email protected]/Outbound/TransportXML
> 2011-06-13 11:41:00,985 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #2
> - ftp://[email protected]/Outbound/TransportXML
> 2011-06-13 11:41:00,996 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #6
> - ftp://[email protected]/Outbound/Vendors
> 2011-06-13 11:41:01,043 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:41:01,048 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:41:01,171 | INFO | Connected and logged in to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:41:01,527 | INFO | src=Ftp,srcTime=2011-06-13
> 11:39:18.540,dst=ROUTER,file=/esb/ToRouter/Binary/CARRIER/JBHLOW/TO_BNSF_DATA/HJBT110613113857.EDI,modified=2011-06-13
> 11:39:12.000,size=257 | Inbound | DefaultMessageListenerContainer-1
> 2011-06-13 11:41:01,536 | INFO | src=Ftp,srcTime=2011-06-13
> 11:39:18.540,dst=Edi,file=Edi-CARRIER/JBHLOW/TO_BNSF_DATA/HJBT110613113857.EDI,modified=2011-06-13
> 11:39:12.000,size=257 | DstEdi | DefaultMessageListenerContainer-1
> 2011-06-13 11:41:01,596 | DEBUG | Took 0.553 seconds to poll: Outbound/AP |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:41:01,596 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:41:02,396 | DEBUG | Took 1.348 seconds to poll:
> Outbound/Customers | org.apache.camel.component.file.remote.FtpConsumer |
> Camel (camel) thread #5 - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:41:02,396 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
> 2011-06-13 11:41:02,973 | DEBUG | Took 1.802 seconds to poll: outbound |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:41:02,973 | DEBUG | Disconnecting from:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:41:36,017 | ERROR | Could not accept connection :
> org.apache.activemq.transport.InactivityIOException: Channel was inactive for
> too long: /172.24.1.95:45512 | org.apache.activemq.broker.TransportConnector
> | ActiveMQ Task
> 2011-06-13 11:42:00,520 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #1
> - ftp://[email protected]/outbound
> 2011-06-13 11:42:00,572 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #3
> - ftp://[email protected]/Outbound/AP
> 2011-06-13 11:42:00,580 | DEBUG | Not connected/logged in, connecting to:
> ftp://[email protected]:21 |
> org.apache.camel.component.file.remote.FtpConsumer | Camel (camel) thread #5
> - ftp://[email protected]/Outbound/Customers
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira