10 Replies Latest reply on Oct 18, 2010 1:10 PM by ngochai

    camel-ftp stops polling after a while

    ngochai

      I have a simple route:

       

      from(ftpProto + "://" + ftpUsername + "@" + ftpHost + "/" + ftpIn + "?password=" + ftpPassword + "&move=" + ftpOut + "&recursive=true&passiveMode=false&disconnect=true&readLock=changed&delay=" + delay)

      //.tracing()

      .convertBodyTo(String.class, "UTF-8")          

      .to("direct:SWTNTXMLFile");

       

      from("direct:SWTNTXMLFile")

      .to("log:BODYSET");

       

      My delay is 10 sec, camel -ftp polls the ftp server for about 20-30 mins and then it just stops.

       

      18:25:55,703 | INFO  | tenderThread-431 | DefaultListableBeanFactory       | pport.DefaultListableBeanFactory  414 | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18f9ed5: defining beans camelContext:beanPostProcessor,camelContext,jmsConnectionFactory,skillwebTntRouteBuilder,tntBPList,extensionFilter,preProps,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0; root of factory hierarchy

      18:25:55,707 | INFO  | tenderThread-431 | DefaultCamelContext              | e.camel.impl.DefaultCamelContext 1017 | Apache Camel 2.2.0-fuse-02-00 (CamelContext:camelContext) is starting

      18:25:55,707 | INFO  | tenderThread-431 | DefaultCamelContext              | e.camel.impl.DefaultCamelContext 1481 | JMX enabled. Using DefaultManagedLifecycleStrategy.

      18:25:56,854 | INFO  | tenderThread-431 | DefaultCamelContext              | e.camel.impl.DefaultCamelContext 1007 | Started 2 routes

      18:25:56,854 | INFO  | tenderThread-431 | DefaultCamelContext              | e.camel.impl.DefaultCamelContext 1009 | Apache Camel 2.2.0-fuse-02-00 (CamelContext:camelContext) started

      18:25:56,854 | INFO  | tenderThread-431 | OsgiBundleXmlApplicationContext  | ractOsgiBundleApplicationContext  327 | Publishing application context as OSGi service with properties {org.springframework.context.service.name=skillweb-tnt, Bundle-SymbolicName=skillweb-tnt, Bundle-Version=0.0.1.SNAPSHOT}

      18:25:56,854 | INFO  | tenderThread-431 | ContextLoaderListener            | BundleApplicationContextListener   45 | Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=sktnt, config=osgibundle:/META-INF/spring/*.xml))

      18:25:57,850 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:26:07,844 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:26:17,842 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:26:27,843 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:26:37,839 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:26:47,840 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:26:57,843 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

       

      ................

       

      18:59:47,843 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      18:59:57,835 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

      19:00:07,842 | INFO  | 31: FtpComponent | FtpConsumer                      | t.file.remote.RemoteFileConsumer   95 | Connected and logged in to: ftp://ftp_user@192.168.1.13:21

       

      And it just stops here.

      Is this a bug? I'm using apache-servicemix-4.2.0-fuse-02-00.

      Thank you.

       

      Edited by: ngochai on Oct 11, 2010 11:35 AM