You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2009/03/02 17:40:11 UTC
Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that
couldn't be set on the endpoint
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/&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.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by cmoulliard <cm...@gmail.com>.
Yes Claus. Unfortunately, I work on a Windows XP machine.
I confirm that sometimes I have the error and sometimes I don't.
Claus Ibsen-2 wrote:
>
> Hi
>
> Are you by any chance running on Windows platform? I am just curious
> as we have got a report on windows with 1.x sometimes can not move
> file after processing.
>
>
> On Tue, Mar 3, 2009 at 11:31 AM, cmoulliard <cm...@gmail.com> wrote:
>>
>> You are right ;-) The file was locked by another application.
>>
>>
>> Claus Ibsen-2 wrote:
>>>
>>> It is trying to delete the file first. Are you sure its not locked or
>>> something by another app.
>>>
>>> Could you try again and be sure the existing file is not open by some
>>> other apps.
>>>
>>>
>>> On Tue, Mar 3, 2009 at 10:36 AM, cmoulliard <cm...@gmail.com>
>>> wrote:
>>>>
>>>> I don't if this point must be fixed or not but when a file already
>>>> exist
>>>> in
>>>> the 'done' directory, then the following error is generated :
>>>>
>>>> 2009-03-03 10:34:00,937 ERROR FileConsumer - Cannot rename file:
>>>> GenericFile[d:\temp\data\csv.txt] to: GenericFile[d:\temp\done\csv.txt]
>>>> org.apache.camel.component.file.GenericFileOperationFailedException:
>>>> Cannot
>>>> rename file: GenericFile[d:\temp\data\csv.txt] to:
>>>> GenericFile[d:\temp\done\csv.txt]
>>>> at
>>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:82)
>>>> at
>>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:58)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>>> at
>>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>>> at
>>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>>> at
>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>>> at
>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>>> at
>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>>> at
>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>>> at
>>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>>> at
>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>> at
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>> at
>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>> at java.lang.Thread.run(Thread.java:619)
>>>>
>>>>
>>>>
>>>>
>>>> cmoulliard wrote:
>>>>>
>>>>> OK. By the way it works fine with absolute paths.
>>>>>
>>>>>
>>>>> Claus Ibsen-2 wrote:
>>>>>>
>>>>>> The problem is that you mix and match absolute with relative.
>>>>>>
>>>>>> I will add a fix but you should also use absolute paths for the move
>>>>>> expression as a workaround.
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> Hi claus,
>>>>>>>
>>>>>>> I receive the following error :
>>>>>>>
>>>>>>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>>>>>>> at
>>>>>>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>>>>>>> at
>>>>>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>>>>>>> at
>>>>>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>>>>>> at
>>>>>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>>>>>> at
>>>>>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>>>>>> at
>>>>>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>>>>>> at
>>>>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>>>>>> at
>>>>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>>>>>> at
>>>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>>>>>> at
>>>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>>>>>> at
>>>>>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>>>>>> at
>>>>>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>>>>>> at
>>>>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>>>>>> at
>>>>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>>>>>> at
>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>>> at
>>>>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>>>> at
>>>>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>>>> at
>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>>>> at
>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>>>>> at
>>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>>> at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>>>
>>>>>>> with the following configuration :
>>>>>>>
>>>>>>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}"
>>>>>>> />
>>>>>>>
>>>>>>> Any idea ?
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>>
>>>>>>> Claus Ibsen-2 wrote:
>>>>>>>>
>>>>>>>> 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 <cm...@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/&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/
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -----
>>>>>>> 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-tp22291579p22304999.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/
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -----
>>>> 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-tp22291579p22305286.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/
>>>
>>>
>>
>>
>> -----
>> 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-tp22291579p22305795.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/
>
>
-----
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-tp22291579p22307222.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Are you by any chance running on Windows platform? I am just curious
as we have got a report on windows with 1.x sometimes can not move
file after processing.
On Tue, Mar 3, 2009 at 11:31 AM, cmoulliard <cm...@gmail.com> wrote:
>
> You are right ;-) The file was locked by another application.
>
>
> Claus Ibsen-2 wrote:
>>
>> It is trying to delete the file first. Are you sure its not locked or
>> something by another app.
>>
>> Could you try again and be sure the existing file is not open by some
>> other apps.
>>
>>
>> On Tue, Mar 3, 2009 at 10:36 AM, cmoulliard <cm...@gmail.com> wrote:
>>>
>>> I don't if this point must be fixed or not but when a file already exist
>>> in
>>> the 'done' directory, then the following error is generated :
>>>
>>> 2009-03-03 10:34:00,937 ERROR FileConsumer - Cannot rename file:
>>> GenericFile[d:\temp\data\csv.txt] to: GenericFile[d:\temp\done\csv.txt]
>>> org.apache.camel.component.file.GenericFileOperationFailedException:
>>> Cannot
>>> rename file: GenericFile[d:\temp\data\csv.txt] to:
>>> GenericFile[d:\temp\done\csv.txt]
>>> at
>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:82)
>>> at
>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:58)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>> at
>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>> at
>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>> at
>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>> at
>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>> at
>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>> at
>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>> at
>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>> at
>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>> at
>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>>
>>>
>>>
>>> cmoulliard wrote:
>>>>
>>>> OK. By the way it works fine with absolute paths.
>>>>
>>>>
>>>> Claus Ibsen-2 wrote:
>>>>>
>>>>> The problem is that you mix and match absolute with relative.
>>>>>
>>>>> I will add a fix but you should also use absolute paths for the move
>>>>> expression as a workaround.
>>>>>
>>>>>
>>>>> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> Hi claus,
>>>>>>
>>>>>> I receive the following error :
>>>>>>
>>>>>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>>>>>> at
>>>>>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>>>>>> at
>>>>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>>>>>> at
>>>>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>>>>> at
>>>>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>>>>> at
>>>>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>>>>> at
>>>>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>>>>> at
>>>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>>>>> at
>>>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>>>>> at
>>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>>>>> at
>>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>>>>> at
>>>>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>>>>> at
>>>>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>>>>> at
>>>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>>>>> at
>>>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>>>>> at
>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>>> at
>>>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>>> at
>>>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>>> at
>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>>> at
>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>>>> at
>>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>>> at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>>
>>>>>> with the following configuration :
>>>>>>
>>>>>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}"
>>>>>> />
>>>>>>
>>>>>> Any idea ?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>>
>>>>>> Claus Ibsen-2 wrote:
>>>>>>>
>>>>>>> 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 <cm...@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/&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/
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -----
>>>>>> 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-tp22291579p22304999.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/
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>> -----
>>> 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-tp22291579p22305286.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/
>>
>>
>
>
> -----
> 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-tp22291579p22305795.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/
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by cmoulliard <cm...@gmail.com>.
You are right ;-) The file was locked by another application.
Claus Ibsen-2 wrote:
>
> It is trying to delete the file first. Are you sure its not locked or
> something by another app.
>
> Could you try again and be sure the existing file is not open by some
> other apps.
>
>
> On Tue, Mar 3, 2009 at 10:36 AM, cmoulliard <cm...@gmail.com> wrote:
>>
>> I don't if this point must be fixed or not but when a file already exist
>> in
>> the 'done' directory, then the following error is generated :
>>
>> 2009-03-03 10:34:00,937 ERROR FileConsumer - Cannot rename file:
>> GenericFile[d:\temp\data\csv.txt] to: GenericFile[d:\temp\done\csv.txt]
>> org.apache.camel.component.file.GenericFileOperationFailedException:
>> Cannot
>> rename file: GenericFile[d:\temp\data\csv.txt] to:
>> GenericFile[d:\temp\done\csv.txt]
>> at
>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:82)
>> at
>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:58)
>> at
>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>> at
>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>> at
>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>> at
>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>> at
>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>> at
>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>> at
>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>> at
>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>> at
>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>> at
>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>> at
>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>> at
>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:619)
>>
>>
>>
>>
>> cmoulliard wrote:
>>>
>>> OK. By the way it works fine with absolute paths.
>>>
>>>
>>> Claus Ibsen-2 wrote:
>>>>
>>>> The problem is that you mix and match absolute with relative.
>>>>
>>>> I will add a fix but you should also use absolute paths for the move
>>>> expression as a workaround.
>>>>
>>>>
>>>> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi claus,
>>>>>
>>>>> I receive the following error :
>>>>>
>>>>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>>>>> at
>>>>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>>>>> at
>>>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>>>>> at
>>>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>>>> at
>>>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>>>> at
>>>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>>>> at
>>>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>>>> at
>>>>> org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>>>> at
>>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>>>> at
>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>>>> at
>>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>>>> at
>>>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>>>> at
>>>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>>>> at
>>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>>>> at
>>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>>>> at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>> at
>>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>> at
>>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>> at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>>> at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>>> at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>>> at java.lang.Thread.run(Thread.java:619)
>>>>>
>>>>> with the following configuration :
>>>>>
>>>>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}"
>>>>> />
>>>>>
>>>>> Any idea ?
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> Claus Ibsen-2 wrote:
>>>>>>
>>>>>> 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 <cm...@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/&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/
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> 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-tp22291579p22304999.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/
>>>>
>>>>
>>>
>>>
>>
>>
>> -----
>> 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-tp22291579p22305286.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/
>
>
-----
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-tp22291579p22305795.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
It is trying to delete the file first. Are you sure its not locked or
something by another app.
Could you try again and be sure the existing file is not open by some
other apps.
On Tue, Mar 3, 2009 at 10:36 AM, cmoulliard <cm...@gmail.com> wrote:
>
> I don't if this point must be fixed or not but when a file already exist in
> the 'done' directory, then the following error is generated :
>
> 2009-03-03 10:34:00,937 ERROR FileConsumer - Cannot rename file:
> GenericFile[d:\temp\data\csv.txt] to: GenericFile[d:\temp\done\csv.txt]
> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
> rename file: GenericFile[d:\temp\data\csv.txt] to:
> GenericFile[d:\temp\done\csv.txt]
> at
> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:82)
> at
> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:58)
> at
> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
> at
> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
> at
> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
> at
> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
> at
> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
> at
> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
> at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
> at
> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
> at
> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
> at
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
>
>
>
> cmoulliard wrote:
>>
>> OK. By the way it works fine with absolute paths.
>>
>>
>> Claus Ibsen-2 wrote:
>>>
>>> The problem is that you mix and match absolute with relative.
>>>
>>> I will add a fix but you should also use absolute paths for the move
>>> expression as a workaround.
>>>
>>>
>>> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com> wrote:
>>>>
>>>> Hi claus,
>>>>
>>>> I receive the following error :
>>>>
>>>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>>>> java.lang.NullPointerException
>>>> at
>>>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>>>> at
>>>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>>>> at
>>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>>> at
>>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>>> at
>>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>>> at
>>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>>> at
>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>>> at
>>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>>> at
>>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>>> at
>>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>>> at
>>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>> at
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>> at
>>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>> at java.lang.Thread.run(Thread.java:619)
>>>>
>>>> with the following configuration :
>>>>
>>>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}" />
>>>>
>>>> Any idea ?
>>>>
>>>> Regards,
>>>>
>>>>
>>>> Claus Ibsen-2 wrote:
>>>>>
>>>>> 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 <cm...@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/&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/
>>>>>
>>>>>
>>>>
>>>>
>>>> -----
>>>> 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-tp22291579p22304999.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/
>>>
>>>
>>
>>
>
>
> -----
> 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-tp22291579p22305286.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/
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by cmoulliard <cm...@gmail.com>.
I don't if this point must be fixed or not but when a file already exist in
the 'done' directory, then the following error is generated :
2009-03-03 10:34:00,937 ERROR FileConsumer - Cannot rename file:
GenericFile[d:\temp\data\csv.txt] to: GenericFile[d:\temp\done\csv.txt]
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
rename file: GenericFile[d:\temp\data\csv.txt] to:
GenericFile[d:\temp\done\csv.txt]
at
org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:82)
at
org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:58)
at
org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
at
org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
at
org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
at
org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
cmoulliard wrote:
>
> OK. By the way it works fine with absolute paths.
>
>
> Claus Ibsen-2 wrote:
>>
>> The problem is that you mix and match absolute with relative.
>>
>> I will add a fix but you should also use absolute paths for the move
>> expression as a workaround.
>>
>>
>> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com> wrote:
>>>
>>> Hi claus,
>>>
>>> I receive the following error :
>>>
>>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>>> java.lang.NullPointerException
>>> at
>>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>>> at
>>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>>> at
>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>> at
>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>> at
>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>> at
>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>> at
>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>> at
>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>> at
>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>> at
>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>> at
>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>> at
>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> with the following configuration :
>>>
>>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}" />
>>>
>>> Any idea ?
>>>
>>> Regards,
>>>
>>>
>>> Claus Ibsen-2 wrote:
>>>>
>>>> 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 <cm...@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/&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/
>>>>
>>>>
>>>
>>>
>>> -----
>>> 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-tp22291579p22304999.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/
>>
>>
>
>
-----
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-tp22291579p22305286.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Mar 3, 2009 at 10:32 AM, cmoulliard <cm...@gmail.com> wrote:
>
> OK. By the way it works fine with absolute paths.
I will commit a fix in a few mins with the patch for the relative to
work as well.
Could you try this on your system?
>
>
> Claus Ibsen-2 wrote:
>>
>> The problem is that you mix and match absolute with relative.
>>
>> I will add a fix but you should also use absolute paths for the move
>> expression as a workaround.
>>
>>
>> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com> wrote:
>>>
>>> Hi claus,
>>>
>>> I receive the following error :
>>>
>>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>>> java.lang.NullPointerException
>>> at
>>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>>> at
>>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>>> at
>>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>>> at
>>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>>> at
>>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>>> at
>>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>>> at
>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>>> at
>>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>>> at
>>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>>> at
>>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>>> at
>>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>> at
>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>> at
>>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> at java.lang.Thread.run(Thread.java:619)
>>>
>>> with the following configuration :
>>>
>>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}" />
>>>
>>> Any idea ?
>>>
>>> Regards,
>>>
>>>
>>> Claus Ibsen-2 wrote:
>>>>
>>>> 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 <cm...@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/&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/
>>>>
>>>>
>>>
>>>
>>> -----
>>> 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-tp22291579p22304999.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/
>>
>>
>
>
> -----
> 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-tp22291579p22305220.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/
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by cmoulliard <cm...@gmail.com>.
OK. By the way it works fine with absolute paths.
Claus Ibsen-2 wrote:
>
> The problem is that you mix and match absolute with relative.
>
> I will add a fix but you should also use absolute paths for the move
> expression as a workaround.
>
>
> On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com> wrote:
>>
>> Hi claus,
>>
>> I receive the following error :
>>
>> 2009-03-03 10:09:41,859 ERROR FileConsumer -
>> java.lang.NullPointerException
>> at
>> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
>> at
>> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
>> at
>> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
>> at
>> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
>> at
>> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
>> at
>> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
>> at
>> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
>> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
>> at
>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
>> at
>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
>> at
>> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
>> at
>> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
>> at
>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
>> at
>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
>> at
>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>> at
>> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> with the following configuration :
>>
>> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}" />
>>
>> Any idea ?
>>
>> Regards,
>>
>>
>> Claus Ibsen-2 wrote:
>>>
>>> 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 <cm...@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/&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/
>>>
>>>
>>
>>
>> -----
>> 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-tp22291579p22304999.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/
>
>
-----
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-tp22291579p22305220.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
The problem is that you mix and match absolute with relative.
I will add a fix but you should also use absolute paths for the move
expression as a workaround.
On Tue, Mar 3, 2009 at 10:16 AM, cmoulliard <cm...@gmail.com> wrote:
>
> Hi claus,
>
> I receive the following error :
>
> 2009-03-03 10:09:41,859 ERROR FileConsumer -
> java.lang.NullPointerException
> at
> org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
> at
> org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
> at
> org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
> at
> org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
> at
> org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
> at
> org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
> at
> org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
> at
> org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
> at
> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
> at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
> at
> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
> at
> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
> at
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
> with the following configuration :
>
> <from uri="file://d:/temp/data/?moveExpression=../done/${file:name}" />
>
> Any idea ?
>
> Regards,
>
>
> Claus Ibsen-2 wrote:
>>
>> 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 <cm...@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/&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/
>>
>>
>
>
> -----
> 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-tp22291579p22304999.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/
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by cmoulliard <cm...@gmail.com>.
Hi claus,
I receive the following error :
2009-03-03 10:09:41,859 ERROR FileConsumer -
java.lang.NullPointerException
at
org.apache.camel.component.file.GenericFile.changeFileName(GenericFile.java:119)
at
org.apache.camel.component.file.strategy.GenericFileExpressionRenamer.renameFile(GenericFileExpressionRenamer.java:41)
at
org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:57)
at
org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:231)
at
org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:185)
at
org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
at
org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:170)
at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
with the following configuration :
<from uri="file://d:/temp/data/?moveExpression=../done/${file:name}" />
Any idea ?
Regards,
Claus Ibsen-2 wrote:
>
> 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 <cm...@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/&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/
>
>
-----
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-tp22291579p22304999.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
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 <cm...@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/&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/
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah the pdf was linking to the Camel 1.x file/ftp components.
Have changed that to link to Camel 2.x in the future.
The file/ftp components has been redone in Camel 2.0 so many options
is not the same.
Glad you got it sorted using the correct values.
On Mon, Aug 3, 2009 at 3:51 PM, SoaMattH<ma...@netpacket.com.au> wrote:
>
>
> I have tried all of the escaping of special characters that does not seem to
> be the problem.
> That was one of the very first things I did when I first wrote the end
> Point.
>
> The escaping is noise to the real problem!!
>
> The problem is the documentation I have is not quite right .....
> page 301 of http://camel.apache.org/manual/camel-manual-2.0-SNAPSHOT.pdf
> Under the heading
> "Camel 2.x URI Options"
> is telling me to use preMoveNamePrefix and moveNamePrefix
>
> Where I should be using
> preMove and move
>
> <camel:endpoint id="incidentFileEndpoint"
>
> uri="file://#{omsws.incident.file.landingzone}/?preMove=#{omsws.incident.file.processing}&move=#{omsws.incident.file.processed}"/>
>
> http://camel.apache.org/file2.html is more upto date than the PDF.
>
>
> Matt
>
>
>
>
> RomKal wrote:
>>
>> When you use & in XML document it has to be written as & as single
>> & starts escape sequences in XML. The same goes to '<' that is written
>> as < and to other special symbols.
>>
>> Roman
>>
>> 2009/8/3 SoaMattH <ma...@netpacket.com.au>:
>>>
>>> The #{} is my custom place holder configurer.
>>>
>>> <camel:endpoint id="incidentFileEndpoint"
>>>
>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/;"/>
>>>
>>> If I put a & in as aseperator I get validation error:
>>> The reference to entity "moveNamePrefix" must End with the ';'
>>> delimiter
>>> and the following Exception:
>>>
>>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>>> Configuration problem: Failed to import bean definitions from relative
>>> location [Camel-Context.xml]
>>> Offending resource: ServletContext resource
>>> [/WEB-INF/ApplicationContext.xml]; nested exception is
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
>>> Line
>>> 30 in XML document from ServletContext resource
>>> [/WEB-INF/Camel-Context.xml]
>>> is invalid; nested exception is org.xml.sax.SAXParseException: The
>>> reference
>>> to entity "moveNamePrefix" must end with the ';' delimiter.
>>> at
>>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>>
>>>
>>>
>>> Thanks Matt
>>>
>>>
>>>
>>>
>>>
>>>
>>> SoaMattH wrote:
>>>>
>>>> I am A little confuses as to how my Enpoint should be configured
>>>> when trying to add properties and delimiters?
>>>>
>>>> I am Utilising Camel 2.0M3
>>>>
>>>> If I say
>>>> <camel:endpoint id="incidentFileEndpoint"
>>>> uri="file://#{omsws.incident.file.landingzone}/" />
>>>> Every thing works fine .....
>>>>
>>>>
>>>> If I say
>>>> <camel:endpoint id="incidentFileEndpoint"
>>>>
>>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
>>>> />
>>>>
>>>> where in my properties
>>>> #
>>>> # Incident File Processing.
>>>> #
>>>> omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
>>>> omsws.incident.file.processing=D:/matt-dev/incident/processing
>>>> omsws.incident.file.processed=D:/matt-dev/incident/processed
>>>> omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
>>>>
>>>> I get a validation Error
>>>> "The reference to entity moveNamePrefix must end with the ';' delimiter.
>>>>
>>>> If I change it to
>>>> <camel:endpoint id="incidentFileEndpoint"
>>>>
>>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
>>>> />
>>>>
>>>> No validation errors, I rebuild and deploy I get:
>>>>
>>>> org.apache.camel.ResolveEndpointFailedException: Failed to resolve
>>>> endpoint: incidentFileEndpoint due to: Error creating bean with name
>>>> 'incidentFileEndpoint': FactoryBean threw exception on object creation;
>>>> nested exception is org.apache.camel.ResolveEndpointFailedException:
>>>> Failed to resolve endpoint:
>>>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>>>> due to: Failed to resolve endpoint:
>>>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>>>> due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
>>>> at
>>>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
>>>> ....
>>>> ....
>>>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>>>> at
>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
>>>> ....
>>>> ....
>>>> org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>
>>>> What should I defint it as?
>>>>
>>>> Thanks Matt
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> cmoulliard 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/&moveNamePrefix=../done/"
>>>>> />
>>>>> <unmarshal ref="bindyDataformat"/>
>>>>> <to uri="bean:csv" />
>>>>> </route>
>>>>> </camelContext>
>>>>>
>>>>> </beans>
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> --
>>> 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-tp22291579p24789494.html
>>> Sent from the Camel - Users mailing list archive at Nabble.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-tp22291579p24791230.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/
Twitter: http://twitter.com/davsclaus
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by SoaMattH <ma...@netpacket.com.au>.
I have tried all of the escaping of special characters that does not seem to
be the problem.
That was one of the very first things I did when I first wrote the end
Point.
The escaping is noise to the real problem!!
The problem is the documentation I have is not quite right .....
page 301 of http://camel.apache.org/manual/camel-manual-2.0-SNAPSHOT.pdf
Under the heading
"Camel 2.x URI Options"
is telling me to use preMoveNamePrefix and moveNamePrefix
Where I should be using
preMove and move
<camel:endpoint id="incidentFileEndpoint"
uri="file://#{omsws.incident.file.landingzone}/?preMove=#{omsws.incident.file.processing}&move=#{omsws.incident.file.processed}"/>
http://camel.apache.org/file2.html is more upto date than the PDF.
Matt
RomKal wrote:
>
> When you use & in XML document it has to be written as & as single
> & starts escape sequences in XML. The same goes to '<' that is written
> as < and to other special symbols.
>
> Roman
>
> 2009/8/3 SoaMattH <ma...@netpacket.com.au>:
>>
>> The #{} is my custom place holder configurer.
>>
>> <camel:endpoint id="incidentFileEndpoint"
>>
>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/;"/>
>>
>> If I put a & in as aseperator I get validation error:
>> The reference to entity "moveNamePrefix" must End with the ';'
>> delimiter
>> and the following Exception:
>>
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Failed to import bean definitions from relative
>> location [Camel-Context.xml]
>> Offending resource: ServletContext resource
>> [/WEB-INF/ApplicationContext.xml]; nested exception is
>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
>> Line
>> 30 in XML document from ServletContext resource
>> [/WEB-INF/Camel-Context.xml]
>> is invalid; nested exception is org.xml.sax.SAXParseException: The
>> reference
>> to entity "moveNamePrefix" must end with the ';' delimiter.
>> at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>
>>
>>
>> Thanks Matt
>>
>>
>>
>>
>>
>>
>> SoaMattH wrote:
>>>
>>> I am A little confuses as to how my Enpoint should be configured
>>> when trying to add properties and delimiters?
>>>
>>> I am Utilising Camel 2.0M3
>>>
>>> If I say
>>> <camel:endpoint id="incidentFileEndpoint"
>>> uri="file://#{omsws.incident.file.landingzone}/" />
>>> Every thing works fine .....
>>>
>>>
>>> If I say
>>> <camel:endpoint id="incidentFileEndpoint"
>>>
>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
>>> />
>>>
>>> where in my properties
>>> #
>>> # Incident File Processing.
>>> #
>>> omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
>>> omsws.incident.file.processing=D:/matt-dev/incident/processing
>>> omsws.incident.file.processed=D:/matt-dev/incident/processed
>>> omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
>>>
>>> I get a validation Error
>>> "The reference to entity moveNamePrefix must end with the ';' delimiter.
>>>
>>> If I change it to
>>> <camel:endpoint id="incidentFileEndpoint"
>>>
>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
>>> />
>>>
>>> No validation errors, I rebuild and deploy I get:
>>>
>>> org.apache.camel.ResolveEndpointFailedException: Failed to resolve
>>> endpoint: incidentFileEndpoint due to: Error creating bean with name
>>> 'incidentFileEndpoint': FactoryBean threw exception on object creation;
>>> nested exception is org.apache.camel.ResolveEndpointFailedException:
>>> Failed to resolve endpoint:
>>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>>> due to: Failed to resolve endpoint:
>>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>>> due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
>>> at
>>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
>>> ....
>>> ....
>>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>>> at
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
>>> ....
>>> ....
>>> org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>
>>> What should I defint it as?
>>>
>>> Thanks Matt
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> cmoulliard 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/&moveNamePrefix=../done/"
>>>> />
>>>> <unmarshal ref="bindyDataformat"/>
>>>> <to uri="bean:csv" />
>>>> </route>
>>>> </camelContext>
>>>>
>>>> </beans>
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> 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-tp22291579p24789494.html
>> Sent from the Camel - Users mailing list archive at Nabble.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-tp22291579p24791230.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Aug 3, 2009 at 2:03 PM, Roman
Kalukiewicz<ro...@gmail.com> wrote:
> When you use & in XML document it has to be written as & as single
> & starts escape sequences in XML. The same goes to '<' that is written
> as < and to other special symbols.
>
Ah yeah how many times have people not been fooled with the & in XML.
Terrible that we have to add that & to get it working.
> Roman
>
> 2009/8/3 SoaMattH <ma...@netpacket.com.au>:
>>
>> The #{} is my custom place holder configurer.
>>
>> <camel:endpoint id="incidentFileEndpoint"
>>
>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/;"/>
>>
>> If I put a & in as aseperator I get validation error:
>> The reference to entity "moveNamePrefix" must End with the ';' delimiter
>> and the following Exception:
>>
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Failed to import bean definitions from relative
>> location [Camel-Context.xml]
>> Offending resource: ServletContext resource
>> [/WEB-INF/ApplicationContext.xml]; nested exception is
>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
>> 30 in XML document from ServletContext resource [/WEB-INF/Camel-Context.xml]
>> is invalid; nested exception is org.xml.sax.SAXParseException: The reference
>> to entity "moveNamePrefix" must end with the ';' delimiter.
>> at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>
>>
>>
>> Thanks Matt
>>
>>
>>
>>
>>
>>
>> SoaMattH wrote:
>>>
>>> I am A little confuses as to how my Enpoint should be configured
>>> when trying to add properties and delimiters?
>>>
>>> I am Utilising Camel 2.0M3
>>>
>>> If I say
>>> <camel:endpoint id="incidentFileEndpoint"
>>> uri="file://#{omsws.incident.file.landingzone}/" />
>>> Every thing works fine .....
>>>
>>>
>>> If I say
>>> <camel:endpoint id="incidentFileEndpoint"
>>>
>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
>>> />
>>>
>>> where in my properties
>>> #
>>> # Incident File Processing.
>>> #
>>> omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
>>> omsws.incident.file.processing=D:/matt-dev/incident/processing
>>> omsws.incident.file.processed=D:/matt-dev/incident/processed
>>> omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
>>>
>>> I get a validation Error
>>> "The reference to entity moveNamePrefix must end with the ';' delimiter.
>>>
>>> If I change it to
>>> <camel:endpoint id="incidentFileEndpoint"
>>>
>>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
>>> />
>>>
>>> No validation errors, I rebuild and deploy I get:
>>>
>>> org.apache.camel.ResolveEndpointFailedException: Failed to resolve
>>> endpoint: incidentFileEndpoint due to: Error creating bean with name
>>> 'incidentFileEndpoint': FactoryBean threw exception on object creation;
>>> nested exception is org.apache.camel.ResolveEndpointFailedException:
>>> Failed to resolve endpoint:
>>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>>> due to: Failed to resolve endpoint:
>>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>>> due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
>>> at
>>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
>>> ....
>>> ....
>>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>>> at
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
>>> ....
>>> ....
>>> org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>
>>> What should I defint it as?
>>>
>>> Thanks Matt
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> cmoulliard 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/&moveNamePrefix=../done/"
>>>> />
>>>> <unmarshal ref="bindyDataformat"/>
>>>> <to uri="bean:csv" />
>>>> </route>
>>>> </camelContext>
>>>>
>>>> </beans>
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> 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-tp22291579p24789494.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/
Twitter: http://twitter.com/davsclaus
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Roman Kalukiewicz <ro...@gmail.com>.
When you use & in XML document it has to be written as & as single
& starts escape sequences in XML. The same goes to '<' that is written
as < and to other special symbols.
Roman
2009/8/3 SoaMattH <ma...@netpacket.com.au>:
>
> The #{} is my custom place holder configurer.
>
> <camel:endpoint id="incidentFileEndpoint"
>
> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/;"/>
>
> If I put a & in as aseperator I get validation error:
> The reference to entity "moveNamePrefix" must End with the ';' delimiter
> and the following Exception:
>
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Failed to import bean definitions from relative
> location [Camel-Context.xml]
> Offending resource: ServletContext resource
> [/WEB-INF/ApplicationContext.xml]; nested exception is
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 30 in XML document from ServletContext resource [/WEB-INF/Camel-Context.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The reference
> to entity "moveNamePrefix" must end with the ';' delimiter.
> at
> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>
>
>
> Thanks Matt
>
>
>
>
>
>
> SoaMattH wrote:
>>
>> I am A little confuses as to how my Enpoint should be configured
>> when trying to add properties and delimiters?
>>
>> I am Utilising Camel 2.0M3
>>
>> If I say
>> <camel:endpoint id="incidentFileEndpoint"
>> uri="file://#{omsws.incident.file.landingzone}/" />
>> Every thing works fine .....
>>
>>
>> If I say
>> <camel:endpoint id="incidentFileEndpoint"
>>
>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
>> />
>>
>> where in my properties
>> #
>> # Incident File Processing.
>> #
>> omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
>> omsws.incident.file.processing=D:/matt-dev/incident/processing
>> omsws.incident.file.processed=D:/matt-dev/incident/processed
>> omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
>>
>> I get a validation Error
>> "The reference to entity moveNamePrefix must end with the ';' delimiter.
>>
>> If I change it to
>> <camel:endpoint id="incidentFileEndpoint"
>>
>> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
>> />
>>
>> No validation errors, I rebuild and deploy I get:
>>
>> org.apache.camel.ResolveEndpointFailedException: Failed to resolve
>> endpoint: incidentFileEndpoint due to: Error creating bean with name
>> 'incidentFileEndpoint': FactoryBean threw exception on object creation;
>> nested exception is org.apache.camel.ResolveEndpointFailedException:
>> Failed to resolve endpoint:
>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>> due to: Failed to resolve endpoint:
>> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
>> due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
>> at
>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
>> ....
>> ....
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
>> ....
>> ....
>> org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> What should I defint it as?
>>
>> Thanks Matt
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> cmoulliard 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/&moveNamePrefix=../done/"
>>> />
>>> <unmarshal ref="bindyDataformat"/>
>>> <to uri="bean:csv" />
>>> </route>
>>> </camelContext>
>>>
>>> </beans>
>>>
>>> Regards,
>>>
>>>
>>>
>>
>>
>
> --
> 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-tp22291579p24789494.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by SoaMattH <ma...@netpacket.com.au>.
The #{} is my custom place holder configurer.
<camel:endpoint id="incidentFileEndpoint"
uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/;"/>
If I put a & in as aseperator I get validation error:
The reference to entity "moveNamePrefix" must End with the ';' delimiter
and the following Exception:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from relative
location [Camel-Context.xml]
Offending resource: ServletContext resource
[/WEB-INF/ApplicationContext.xml]; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
30 in XML document from ServletContext resource [/WEB-INF/Camel-Context.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: The reference
to entity "moveNamePrefix" must end with the ';' delimiter.
at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
Thanks Matt
SoaMattH wrote:
>
> I am A little confuses as to how my Enpoint should be configured
> when trying to add properties and delimiters?
>
> I am Utilising Camel 2.0M3
>
> If I say
> <camel:endpoint id="incidentFileEndpoint"
> uri="file://#{omsws.incident.file.landingzone}/" />
> Every thing works fine .....
>
>
> If I say
> <camel:endpoint id="incidentFileEndpoint"
>
> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
> />
>
> where in my properties
> #
> # Incident File Processing.
> #
> omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
> omsws.incident.file.processing=D:/matt-dev/incident/processing
> omsws.incident.file.processed=D:/matt-dev/incident/processed
> omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
>
> I get a validation Error
> "The reference to entity moveNamePrefix must end with the ';' delimiter.
>
> If I change it to
> <camel:endpoint id="incidentFileEndpoint"
>
> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
> />
>
> No validation errors, I rebuild and deploy I get:
>
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint: incidentFileEndpoint due to: Error creating bean with name
> 'incidentFileEndpoint': FactoryBean threw exception on object creation;
> nested exception is org.apache.camel.ResolveEndpointFailedException:
> Failed to resolve endpoint:
> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
> due to: Failed to resolve endpoint:
> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
> due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
> ....
> ....
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
> ....
> ....
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
> at java.security.AccessController.doPrivileged(Native Method)
>
> What should I defint it as?
>
> Thanks Matt
>
>
>
>
>
>
>
>
>
>
>
> cmoulliard 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/&moveNamePrefix=../done/"
>> />
>> <unmarshal ref="bindyDataformat"/>
>> <to uri="bean:csv" />
>> </route>
>> </camelContext>
>>
>> </beans>
>>
>> Regards,
>>
>>
>>
>
>
--
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-tp22291579p24789494.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Is the syntax #{ } some sort of Spring property place holders?
Its definitely not Camel using this syntax.
But the problem looks like its this mehanism that cannot set the
replaced values correctly.
Since it gets dual options combined into a single option
preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;
eg the above two options should be separated with & and not semi colon.
On Mon, Aug 3, 2009 at 6:57 AM, SoaMattH<ma...@netpacket.com.au> wrote:
>
> I am A little confuses as to how my Enpoint should be configured
> when trying to add properties and delimiters?
>
> I am Utilising Camel 2.0M3
>
> If I say
> <camel:endpoint id="incidentFileEndpoint"
> uri="file://#{omsws.incident.file.landingzone}/" />
> Every thing works fine .....
>
>
> If I say
> <camel:endpoint id="incidentFileEndpoint"
>
> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
> />
>
> where in my properties
> #
> # Incident File Processing.
> #
> omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
> omsws.incident.file.processing=D:/matt-dev/incident/processing
> omsws.incident.file.processed=D:/matt-dev/incident/processed
> omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
>
> I get a validation Error
> "The reference to entity moveNamePrefix must end with the ';' delimiter.
>
> If I change it to
> <camel:endpoint id="incidentFileEndpoint"
>
> uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
> />
>
> No validation errors, I rebuild and deploy I get:
>
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
> incidentFileEndpoint due to: Error creating bean with name
> 'incidentFileEndpoint': FactoryBean threw exception on object creation;
> nested exception is org.apache.camel.ResolveEndpointFailedException: Failed
> to resolve endpoint:
> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
> due to: Failed to resolve endpoint:
> file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
> due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
> ....
> ....
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
> ....
> ....
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
> at java.security.AccessController.doPrivileged(Native Method)
>
> What should I defint it as?
>
> Thanks Matt
>
>
>
>
>
>
>
>
>
>
>
> cmoulliard 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/&moveNamePrefix=../done/"
>> />
>> <unmarshal ref="bindyDataformat"/>
>> <to uri="bean:csv" />
>> </route>
>> </camelContext>
>>
>> </beans>
>>
>> Regards,
>>
>>
>>
>
> --
> 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-tp22291579p24785346.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/
Twitter: http://twitter.com/davsclaus
Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters
that couldn't be set on the endpoint
Posted by SoaMattH <ma...@netpacket.com.au>.
I am A little confuses as to how my Enpoint should be configured
when trying to add properties and delimiters?
I am Utilising Camel 2.0M3
If I say
<camel:endpoint id="incidentFileEndpoint"
uri="file://#{omsws.incident.file.landingzone}/" />
Every thing works fine .....
If I say
<camel:endpoint id="incidentFileEndpoint"
uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/&moveNamePrefix=#{omsws.incident.file.processed}/"
/>
where in my properties
#
# Incident File Processing.
#
omsws.incident.file.landingzone=D:/matt-dev/incident/landingzone
omsws.incident.file.processing=D:/matt-dev/incident/processing
omsws.incident.file.processed=D:/matt-dev/incident/processed
omsws.incident.file.deadletter=D:/matt-dev/incident/deadletter
I get a validation Error
"The reference to entity moveNamePrefix must end with the ';' delimiter.
If I change it to
<camel:endpoint id="incidentFileEndpoint"
uri="file://#{omsws.incident.file.landingzone}/?preMoveNamePrefix=#{omsws.incident.file.processing}/;moveNamePrefix=#{omsws.incident.file.processed}/;"
/>
No validation errors, I rebuild and deploy I get:
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
incidentFileEndpoint due to: Error creating bean with name
'incidentFileEndpoint': FactoryBean threw exception on object creation;
nested exception is org.apache.camel.ResolveEndpointFailedException: Failed
to resolve endpoint:
file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
due to: Failed to resolve endpoint:
file://D:/matt-dev/incident/landingzone/?preMoveNamePrefix=D%3A%2Fmatt-dev%2Fincident%2Fprocessing%2F%3BmoveNamePrefix%3DD%3A%2Fmatt-dev%2Fincident%2Fprocessed%2F%3B
due to: There are 1 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=[{preMoveNamePrefix=D:/matt-dev/incident/processing/;moveNamePrefix=D:/matt-dev/incident/processed/;}]
at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:404)
....
....
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
....
....
org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
at java.security.AccessController.doPrivileged(Native Method)
What should I defint it as?
Thanks Matt
cmoulliard 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/&moveNamePrefix=../done/"
> />
> <unmarshal ref="bindyDataformat"/>
> <to uri="bean:csv" />
> </route>
> </camelContext>
>
> </beans>
>
> Regards,
>
>
>
--
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-tp22291579p24785346.html
Sent from the Camel - Users mailing list archive at Nabble.com.