hello,
I wanted to upgrade from Camel 2.14.2 to 2.15.0, but I get the following
errors using Spring 4.0.9.RELEASE. Any suggestions what has gone wrong?
mar 23, 2015 10:03:06 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
mar 23, 2015 10:03:07 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
mar 23, 2015 10:03:11 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'healthCheckInitializer': Injection of autowired dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private org.apache.camel.CamelContext
com.acme.pale.config.HealthCheckInitializer.camelContext; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'camelContext' defined in class path resource
[com/acme/config/Config.class]: Invocation of init method failed; nested
exception is org.apache.camel.FailedToCreateRouteException: Failed to create
route PP.PROVIDER.XML at: >>> Split[tokenize{body() using token: Chart} ->
[Bean[com.acme.OfferTransformer@3754ea96], Split[simple{body} ->
[Bean[com.acme.NoOpEnricher@1b33798d], To[direct:PP.SOLRIZE]]]]] <<< in
route: Route(PP.PROVIDER.XML)[[From[seda:PP.PR... because of
org.apache.camel.component.bean.MethodNotFoundException: Method with name:
createGenericOffers not found on bean: com.acme.OfferTransformer@3754ea96 of
type: com.acme.OfferTransformer
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:301)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1186)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could
not autowire field: private org.apache.camel.CamelContext
com.acme.config.HealthCheckInitializer.camelContext; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camelContext' defined in class path resource
[com/acme/config/Config.class]: Invocation of init method failed; nested
exception is org.apache.camel.FailedToCreateRouteException: Failed to create
route PP.INCLUSIVERESPONSE.XML at: >>> Split[tokenize{body() using token:
Chart} -> [Bean[com.acme.OfferTransformer@3754ea96], Split[simple{body} ->
[Bean[com.acme.NoOpEnricher@1b33798d], To[direct:PP.SOLRIZE]]]]] <<< in
route: Route(PP.INCLUSIVERESPONSE.XML)[[From[seda:PP.PR... because of
org.apache.camel.component.bean.MethodNotFoundException: Method with name:
createGenericOffers not found on bean: com.acme.OfferTransformer@3754ea96 of
type: com.acme.OfferTransformer
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:522)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'camelContext' defined in class path resource
[com/acme/config/Config.class]: Invocation of init method failed; nested
exception is org.apache.camel.FailedToCreateRouteException: Failed to create
route PP.INCLUSIVERESPONSE.XML at: >>> Split[tokenize{body() using token:
Chart} -> [Bean[com.acme.InclusiveOfferTransformer@3754ea96],
Split[simple{body} -> [Bean[com.acme.NoOpEnricher@1b33798d],
To[direct:PP.SOLRIZE]]]]] <<< in route:
Route(PP.INCLUSIVERESPONSE.XML)[[From[seda:PP.PR... because of
org.apache.camel.component.bean.MethodNotFoundException: Method with name:
createGenericOffers not found on bean:
com.acme.InclusiveOfferTransformer@3754ea96 of type:
com.acme.InclusiveOfferTransformer
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:494)
--
View this message in context:
http://camel.465427.n5.nabble.com/Problems-with-Spring-and-Camel-2-15-0-tp5764631.html
Sent from the Camel - Users mailing list archive at Nabble.com.