camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Error using Transacted with Camel 2.0
Date Thu, 02 Jul 2009 13:57:24 GMT
Hi

Yeah you need to add all the spring transaction stuff.


On Thu, Jul 2, 2009 at 3:47 PM, Charles Moulliard<cmoulliard@gmail.com> wrote:
> Camel generates the following error with my route :
>
> Route
>
>        <camel:route>
>            <camel:from ref="queueQuickFixInEndpoint" />
>            <camel:convertBodyTo type="quickfix.Message" />
>            <camel:transacted/>
>            <camel:bean ref="serviceHelper" method="createNotification" />
>            <camel:bean ref="serviceHelper" method="generateError" />
>            <camel:to ref="directNotificationEndpoint" />
>        </camel:route>
>
> It seems that policy must be defined but in the example here it is not
> mentioned : http://camel.apache.org/transactional-client.html
>
> Error :
>
> 15:43:07,838 | ERROR | xtenderThread-30 | ContextLoaderListener            |
> BundleApplicationContextListener   50 | Application context refresh failed
> (OsgiBundleXmlApplicationContext(bundle=com.xpectis.x3s.x3s-core,
> config=osgibundle:/META-INF/spring/*.xml))
> org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
> policy must be specified on: Transacted[ref: null]
>    at
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:986)
>    at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121)
>    at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:465)
>    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.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
>    at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
>    at
> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>    at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
>    at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
>    at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.IllegalArgumentException: policy must be specified on:
> Transacted[ref: null]
>    at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:258)
>    at
> org.apache.camel.model.TransactedDefinition.createProcessor(TransactedDefinition.java:129)
>    at
> org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:226)
>    at
> org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:111)
>    at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:294)
>    at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:120)
>    at
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:552)
>    at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:969)
>    at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:946)
>    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:52)
>    at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:863)
>    at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:99)
>    at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:119)
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
>



-- 
Claus Ibsen
Apache Camel Committer

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

Mime
View raw message