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: Quartz2 Endpoint Exception
Date Fri, 01 Apr 2016 09:03:06 GMT
You get some spring .. in creation error.

Use a string in the from(start) so its just a string and not an
endpoint instance

On Fri, Apr 1, 2016 at 10:51 AM, Hubertus.Willuhn
<hubertus.willuhn@dinsoftware.de> wrote:
> My Camel Version is: 2.16.1
> Spring: 4.1.8.RELEASE
> Spring Boot: 1.2.7.RELEASE
>
> We are not migrated to Camel 2.17. Maybe its already fixed?
>
> Full stacktrace:
>
> 09:56:50 | [main] CamelApp                                    | ERROR |
> Camel App crashed, Reason: Error creating bean with name 'camelContext'
> defined in class com.din.xscore.imp.config.CamelConfig: Bean instantiation
> via factory method failed; nested exceptio
> n is org.springframework.beans.BeanInstantiationException: Failed to
> instantiate [org.apache.camel.CamelContext]: Factory method 'camelContext'
> threw exception; nested exception is
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
> qua
> rtz2://updateTrigger?cron=0+0%2F5+*+*+*+%3F due to: null
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'camelContext' defined in class
> com.din.xscore.imp.config.CamelConfig: Bean instantiation via factory method
> failed; nested exception is org.springframework.beans.BeanInstant
> iationException: Failed to instantiate [org.apache.camel.CamelContext]:
> Factory method 'camelContext' threw exception; nested exception is
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
> quartz2://updateTrigger?cron=0+0%2F5+*+*+*+%3
> F due to: null
> Related cause:
> org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
> creating bean with name 'camelContext': Requested bean is currently in
> creation: Is there an unresolvable circular reference?
>         at
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1117)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1012)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
>         at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:759)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
>         at
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:689)
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
>         at com.din.xscore.imp.CamelApp.main(CamelApp.java:67)
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to
> instantiate [org.apache.camel.CamelContext]: Factory method 'camelContext'
> threw exception; nested exception is
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoin
> t: quartz2://updateT
> r
> igger?cron=0+0%2F5+*+*+*+%3F due to: null
>         at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
>         at
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
>         ... 14 more
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint: quartz2://updateTrigger?cron=0+0%2F5+*+*+*+%3F due to:
> null
>         at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:590)
>         at
> org.apache.camel.builder.BuilderSupport.endpoint(BuilderSupport.java:363)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.endpoint(ISOUpdateTrigger.java)
>         at com.din.xscore.camel.routes.Trigger.producer(Trigger.java:66)
>         at com.din.xscore.camel.routes.Trigger.configure(Trigger.java:51)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.configure(ISOUpdateTrigger.java)
>         at
> org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:402)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.checkInitialized(ISOUpdateTrigger.java)
>         at
> org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:342)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.configureRoutes(ISOUpdateTrigger.java)
>         at
> org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:325)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.addRoutesToCamelContext(ISOUpdateTrigger.java)
>         at
> org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:837)
>         at
> org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:834)
>         at
> org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2831)
>         at
> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:834)
>         at
> org.apache.camel.spring.javaconfig.CamelConfiguration.camelContext(CamelConfiguration.java:145)
>         at
> com.din.xscore.imp.config.CamelConfig.camelContext(CamelConfig.java)
>         at
> com.din.xscore.imp.config.CamelConfincerBySpringCGLIB$$5df92a9b.CGLIB$camelContext$5(<generated>)
>         at
> com.din.xscore.imp.config.CamelConfig$$EnhancerBySpringCGLIB$$5df92a9b$$FastClassBySpringCGLIB$$b2a8c723.invoke(<generated>)
>         at
> org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
>         at
> org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
>         at
> com.din.xscore.imp.config.CamelConfig$$EnhancerBySpringCGLIB$$5df92a9b.camelContext(<generated>)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at
> org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
>         at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
>         ... 15 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.camel.component.quartz2.QuartzEndpoint.addJobInScheduler(QuartzEndpoint.java:305)
>         at
> org.apache.camel.component.quartz2.QuartzEndpoint.doStart(QuartzEndpoint.java:268)
>         at
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at
> org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3232)
>         at
> org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1212)
>         at
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1173)
>         at
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1169)
>         at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:586)
>         ... 43 more
> Related cause:
> org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
> creating bean with name 'camelContext': Requested bean is currently in
> creation: Is there an unresolvable circular reference?
>         at
> ingframework.beans.factory.support.DefaultSingletonBeanRegistry.beforeSingletonCreation(DefaultSingletonBeanRegistry.java:347)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:523)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:512)
>         at
> org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1056)
>         at
> org.apache.camel.spring.CamelBeanPostProcessor$1.getOrLookupCamelContext(CamelBeanPostProcessor.java:73)
>         at
> org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:87)
>         at
> org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:148)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:342)
>         at
> org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)
>         at
> org.apache.camel.impl.DefaunentResolver.resolveComponent(DefaultComponentResolver.java:87)
>         at
> org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:401)
>         at
> org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:388)
>         at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:560)
>         at
> org.apache.camel.builder.BuilderSupport.endpoint(BuilderSupport.java:363)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.endpoint(ISOUpdateTrigger.java)
>         at com.din.xscore.camel.routes.Trigger.producer(Trigger.java:66)
>         at com.din.xscore.camel.routes.Trigger.configure(Trigger.java:51)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.configure(ISOUpdateTrigger.java)
>         at
> org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:402)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.checkInitialized(ISOUpdateTrigger.java)
>         at
> org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:342)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.configureRoutes(ISOUpdateTrigger.java)
>         at
> org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:325)
>         at
> com.din.xscore.imp.iso.update.ISOUpdateTrigger.addRoutesToCamelContext(ISOUpdateTrigger.java)
>         at
> org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:837)
>         at
> org.apache.camel.impl.DefaultCamelContext$1.call(DefaultCamelContext.java:834)
>         at
> org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2831)
>         at
> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:834)
>         at
> org.apache.camel.spring.javaconfig.CamelConfiguration.camelContext(CamelConfiguration.java:145)
>         at
> com.din.xscore.imp.config.CamelConfig.camelContext(CamelConfig.java)
>         at
> com.din.xscore.imp.config.CamelConfig$$EnhancerBySpringCGLIB$$5df92a9b.CGLIB$camelContext$5(<generated>)
>         at
> com.din.xscore.imp.config.CamelConfig$$EnhancerBySpringCGLIB$$5df92a9b$$FastClassBySpringCGLIB$$b2a8c723.invoke(<generated>)
>         at
> org.springrk.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
>         at
> org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)
>         at
> com.din.xscore.imp.config.CamelConfig$$EnhancerBySpringCGLIB$$5df92a9b.camelContext(<generated>)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at
> org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
>         at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
>         at
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1117)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1012)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>         at
> org.springframework.beans.factory.support.DefaultListnFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
>         at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:759)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
>         at
> org.springframework.boot.SpringApplication.refresh(SpringApplication.java:689)
>         at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
>         at com.din.xscore.imp.CamelApp.main(CamelApp.java:67)
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Quartz2-Endpoint-Exception-tp5780221p5780224.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message