Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 95146 invoked from network); 6 Jan 2011 19:46:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 19:46:11 -0000 Received: (qmail 43697 invoked by uid 500); 6 Jan 2011 19:46:11 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 43664 invoked by uid 500); 6 Jan 2011 19:46:11 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 43656 invoked by uid 99); 6 Jan 2011 19:46:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 19:46:11 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 19:46:06 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PavmL-0007NX-Ry for users@camel.apache.org; Thu, 06 Jan 2011 11:45:45 -0800 Date: Thu, 6 Jan 2011 11:45:45 -0800 (PST) From: magillus To: users@camel.apache.org Message-ID: <1294343145841-3331013.post@n5.nabble.com> Subject: SFTP Component and consumer.regexPattern parameter throws error. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I am trying to use SFTPComponent in Camel with filtering files by regexPattern however on startup of application I got error with stacktrace below. Anyone used SFTPComponent with regexPattern filter? Is it bug or I do something wrong. I couldn't find answer and I looked at source code for that component and it has regexPattern usage as FTPComponent. On documentation site: http://camel.apache.org/ftp.html is says under 'consumer.regexPattern' "Used by FTPConsumer. Regular expression to use for matching files when consuming.". Does it means that SFTPComponent doesn't use that parameter? I thought it is very similar. 2011-01-06/13:56:46.039/EST [main] INFO Quartz scheduler version: 1.8.3 Exception in thread "main" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: sftp://username@192.168.1.2:22/?binary=true&consumer.delay=60000&consumer.regexPattern=.*%5C.xml%24&password=password due to: There are 1 parameters that couldn't be set on the endpoint consumer. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown consumer parameters=[{regexPattern=.*\.xml$}] at org.apache.camel.impl.ScheduledPollEndpoint.configureConsumer(ScheduledPollEndpoint.java:66) at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:90) at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:32) at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:60) at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:75) at org.apache.camel.impl.RouteService.doStart(RouteService.java:132) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:56) at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1328) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1256) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:952) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:231) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83) Regards, Magillus -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-Component-and-consumer-regexPattern-parameter-throws-error-tp3331013p3331013.html Sent from the Camel - Users mailing list archive at Nabble.com.