You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Filippo Balicchia <fb...@gmail.com> on 2011/07/21 11:45:11 UTC
DefaultQuartzScheduler' already exists
Hello,
I have installes two bundle in servicemix 4.3.0 that define use both
camel-quartz scheduler, and when they are installed i receive the
following exception
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'camel-2': Invocation of init method
failed; nested exception is org.quartz.SchedulerException: Scheduler
with name 'DefaultQuartzScheduler' already exists.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)[61:org.springframework.context:3.0.5.RELEASE]
at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:95)[75:org.apache.camel.camel-spring:2.6.0]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
... 23 more
The bundle start and work but how can i avoid this message
the version of camel that i use is 2.6.0
Cheers
--Filippo
Re: DefaultQuartzScheduler' already exists
Posted by Claus Ibsen <cl...@gmail.com>.
This should be fixed in the upcoming Apache ServiceMix 4.4. release.
In fact its fixed in Camel 2.7 if I recall correctly.
Fuse ESB 4.4 has been released for a while with has this fixed.
http://fusesource.com/products/enterprise-servicemix/
On Thu, Jul 21, 2011 at 11:45 AM, Filippo Balicchia
<fb...@gmail.com> wrote:
> Hello,
> I have installes two bundle in servicemix 4.3.0 that define use both
> camel-quartz scheduler, and when they are installed i receive the
> following exception
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'camel-2': Invocation of init method
> failed; nested exception is org.quartz.SchedulerException: Scheduler
> with name 'DefaultQuartzScheduler' already exists.
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)[61:org.springframework.context:3.0.5.RELEASE]
> at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:95)[75:org.apache.camel.camel-spring:2.6.0]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)[59:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
> ... 23 more
>
> The bundle start and work but how can i avoid this message
>
> the version of camel that i use is 2.6.0
>
> Cheers
>
> --Filippo
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
RE: DefaultQuartzScheduler' already exists
Posted by Narita Bagchi <Na...@headstrong.com>.
This is happening because you are trying to register the same name scheduler twice. You get this error during the second attempt. You need to figure out when is the Scheduler getting initialized prior to this second attempt.
-----Original Message-----
From: Filippo Balicchia [mailto:fbalicchia@gmail.com]
Sent: Thursday, July 21, 2011 3:15 PM
To: users@camel.apache.org
Subject: DefaultQuartzScheduler' already exists
Hello,
I have installes two bundle in servicemix 4.3.0 that define use both
camel-quartz scheduler, and when they are installed i receive the
following exception
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'camel-2': Invocation of init method
failed; nested exception is org.quartz.SchedulerException: Scheduler
with name 'DefaultQuartzScheduler' already exists.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)[61:org.springframework.context:3.0.5.RELEASE]
at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:95)[75:org.apache.camel.camel-spring:2.6.0]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)[59:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[59:org.springframework.beans:3.0.5.RELEASE]
... 23 more
The bundle start and work but how can i avoid this message
the version of camel that i use is 2.6.0
Cheers
--Filippo
***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***