camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shreyas <shreyas.puro...@hotmail.com>
Subject Latest 2.15 snapshot breaks my unit tests
Date Mon, 02 Mar 2015 21:02:35 GMT
Hello,

I am using a lot of components from 2.14.1, but needed to use camel-aws from 2.15-SNAPSHOT.
These are my dependencies:

lazy val camelStableVersion = "2.14.1"

lazy val camelSnapshotVersion = "2.15-SNAPSHOT"

libraryDependencies ++= Seq(
 "org.apache.camel" % "camel-scala" % camelStableVersion,
 "org.apache.camel" % "camel-core" % camelStableVersion,
 "org.apache.camel" % "camel-aws" % camelSnapshotVersion,
 "org.apache.camel" % "camel-ftp" % camelStableVersion,
 "org.apache.camel" % "camel-test" % camelStableVersion,
 "org.scala-lang.modules" %% "scala-xml" % "1.0.3",
 "ch.qos.logback" % "logback-core" % "1.1.2",
 "ch.qos.logback" % "logback-classic" % "1.1.2",
 "javax.mail" % "mail" % "1.4.7",
 "org.apache.commons" % "commons-io" % "1.3.2",
 "org.apache.commons" % "commons-lang3" % "3.3.2",
 "com.novocode" % "junit-interface" % "0.11" % Test
)

The junits were all working fine till today. I have overridden useOverridePropertiesWithPropertiesComponent.
But, now it fails in PropertiesComponent with:

Caused by: java.lang.IllegalArgumentException: PropertiesComponent with name properties must
be defined in CamelContext to support property placeholders. Property with key [sftp.userName]
not found in properties from text: sftp://{{sftp.userName}}@{{sftp.hostname}}{{sftp.folder}}?moveFailed={{sftp.moveFailedFolder}}&privateKeyFile={{sftp.privateKeyFile}}&privateKeyPassphrase={{sftp.privateKeyPassphrase}}&readLock=changed&readLockCheckInterval=10000&readLockTimeout=40000&streamDownload=true&fastExistsCheck=true&idempotent=true&useFixedDelay=true&delete=true&recursive=true&stepwise=false
[error]     at org.apache.camel.component.properties.DefaultPropertiesParser$ParsingContext.getPropertyValue(DefaultPropertiesParser.java:268)
[error]     at org.apache.camel.component.properties.DefaultPropertiesParser$ParsingContext.readProperty(DefaultPropertiesParser.java:154)
[error]     at org.apache.camel.component.properties.DefaultPropertiesParser$ParsingContext.doParse(DefaultPropertiesParser.java:113)
[error]     at org.apache.camel.component.properties.DefaultPropertiesParser$ParsingContext.parse(DefaultPropertiesParser.java:97)
[error]     at org.apache.camel.component.properties.DefaultPropertiesParser.parseUri(DefaultPropertiesParser.java:62)
[error]     at org.apache.camel.component.properties.PropertiesComponent.parseUri(PropertiesComponent.java:177)
[error]     at org.apache.camel.component.properties.PropertiesComponent.parseUri(PropertiesComponent.java:128)
[error]     at org.apache.camel.impl.DefaultCamelContext.resolvePropertyPlaceholders(DefaultCamelContext.java:1956)
[error]     at org.apache.camel.model.ProcessorDefinitionHelper.resolvePropertyPlaceholders(ProcessorDefinitionHelper.java:632)
[error]     at org.apache.camel.model.RouteDefinitionHelper.initRouteInputs(RouteDefinitionHelper.java:336)

I have attached the project. I am not sure what is going wrong or how to fix this without
upgrading everything to 2.15-SNAPSHOT. Please help.

Thanks,
Shreyas Purohit 		 	   		  
Mime
View raw message