No endpoint could be found for: ${queueIn}, please check your classpath
contains the needed camel component jar.
----------------------------------------------------------------------------------------------------------------
Key: CAMEL-1577
URL: https://issues.apache.org/activemq/browse/CAMEL-1577
Project: Apache Camel
Issue Type: Bug
Affects Versions: 2.0-M1
Reporter: Charles Moulliard
Hi,
I have discovered two small issues using camel DSL in combination with
osgix:cm-properties.
In my spring config file, I have created the following route
<camel:route>
<camel:from uri="${uriFile}" />
<camel:setHeader headerName="origin">
<camel:constant>file</camel:constant>
</camel:setHeader>
<camel:unmarshal ref="bindyDataformat" />
<camel:to uri="${queueIn}" />
</camel:route>
and osgix:cm-properties like this
<osgix:cm-properties id="camelProps"
persistent-id="org.apache.camel.example.reportincident.routing">
<prop
key="uriFile">file://c:/temp/data/?move=c:/temp/done/${file:name}</prop> (2)
<prop key="queueIn">queuingservice:queue:in</prop> (1)
</osgix:cm-properties>
Remark : ${file:name} is a camel property !!
but at the OSGI startup the two following errors are generated
(1) No endpoint could be found for: ${queueIn}
17:19:28,838 | INFO | xtenderThread-27 | DefaultCamelContext |
e.camel.impl.DefaultCamelContext 729 | Apache Camel 2.0-M1
(CamelContext:camelContext) is starting
17:19:29,322 | ERROR | xtenderThread-27 | ContextLoaderListener |
BundleApplicationContextListener 50 | Application context refresh failed
(OsgiBundleXmlApplicationContext(bundle=reportincident.routing,
config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.NoSuchEndpointException: No endpoint could be found for:
${queueIn}, please check your classpath contains the needed camel component jar.
at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:133)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:103)
at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:109)
at
org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:57)
at
org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:51)
(2)
org.springframework.beans.factory.BeanDefinitionSt oreException: Invalid bean
definition with name 'camelProps' defined in null: Could not resolve
placeholder 'file:name'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.