camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that couldn't be set on the endpoint
Date Mon, 02 Mar 2009 16:46:03 GMT
Hi

The option for file have changed in camel 2.0. See:
http://camel.apache.org/file2.html

All the pre/postfix etc. is based on expressions now. So it should be
something like this:
moveExpression=../done/${file:name}
preMoveExpression=inprogress/${file:name}



On Mon, Mar 2, 2009 at 5:40 PM, cmoulliard <cmoulliard@gmail.com> wrote:
>
> Hi,
>
> The following error is reported when I deploy a camel project on Service Mix
> Kernel 1.1.0 snashot where Camel-2.0 SNAPSHOT osgi bundle is deployed ?
>
> 17:36:17,640 | ERROR | xtenderThread-15 | OsgiBundleXmlApplicationContext  |
> gatedExecutionApplicationContext  366 | Post refresh error
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
> file://d:/temp/data/?preMoveNamePrefix=inprogress/&moveNamePrefix=../done/
> due to: org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint:
> file://d:/temp/data/?preMoveNamePrefix=inprogress/&moveNamePrefix=../done/
> due to: There are 2 parameters that couldn't be set on the endpoint. Check
> the uri if the parameters are spelt correctly and that they are properties
> of the endpoint. Unknown parameters=[{moveNamePrefix=../done/,
> preMoveNamePrefix=inprogress/}]
>        at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:356)
>        at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55)
>        at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.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.FromType.resolveEndpoint(FromType.java:72)
>        at
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:78)
>        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:302)
>        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:121)
>        at
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:459)
>        at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:735)
>        at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:717)
>        at
> org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:165)
>        at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160)
>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
>        at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)
>        at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)
>        at
> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>        at
> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>        at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>        at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
>        at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
>        at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:380)
>        at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:346)
>        at
> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>        at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308)
>        at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)
>        at java.lang.Thread.run(Thread.java:619)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="
>     http://www.springframework.org/schema/beans
>     http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>     http://camel.apache.org/schema/spring
>     http://camel.apache.org/schema/spring/camel-spring.xsd">
>
>        <bean id="bindyDataformat"
>                  class="org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat">
>      <constructor-arg type="java.lang.String"
> value="com.xpectis.camel.bindy.model"/>
>        </bean>
>
>        <bean id="csv" class="com.xpectis.camel.bindy.csv.CsvBean" />
>
>        <camelContext xmlns="http://camel.apache.org/schema/spring">
>
>                <package>com.xpectis.camel.bindy.routing</package>
>                        <route>
>                          <from
> uri="file://d:/temp/data/?preMoveNamePrefix=inprogress/&amp;moveNamePrefix=../done/"
> />
>                          <unmarshal ref="bindyDataformat"/>
>                          <to uri="bean:csv" />
>                        </route>
>        </camelContext>
>
> </beans>
>
> Regards,
>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: http://www.nabble.com/Camel-2.0-snapshot-deployed-on-SMKNL4---There-are-2-parameters-that-couldn%27t-be-set-on-the-endpoint-tp22291579p22291579.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Mime
View raw message