You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by madhu <ma...@wipro.com> on 2012/03/01 10:32:10 UTC

quartz sheduler problem

in my project  we are using  quartz scheduler  and i am getting the below
error ,when i am running my camel context.  pls help me ?


java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.camel.RuntimeCamelException:
org.quartz.JobPersistenceException: New trigger is not related to the same
job as the old trigger.



and  this is my spring config 


<route>
			<from uri="quartz://report?cron=0 0/30 * * * ?" />
			<process ref="expWorkItemEscSchedulerGatewayInBoundStageTransformer"/>
			<process ref="commonGatewayOutBoundRouter"/>
			<choice>
					<when>
					<simple>${header.FileVMPath} equals
'vm://SCHX-GW-01_SCHEDULER_SCHEDULER'</simple>
					<to uri="vm://SCHX-GW-01_SCHEDULER_SCHEDULER"/>
					</when>
			</choice>
		</route>
			
		<route>
			<from uri="quartz://report?cron=0 0/30 * * * ?" />
			<process ref="qcJobsSchedulerGatewayInBoundStageTransformer"/>
			<process ref="commonGatewayOutBoundRouter"/>
			<choice>
					<when>
					<simple>${header.FileVMPath} equals
'vm://SCHX-GW-01_SCHEDULER_SCHEDULER'</simple>
					<to uri="vm://SCHX-GW-01_SCHEDULER_SCHEDULER"/>
					</when>
			</choice>
		</route>



--
View this message in context: http://camel.465427.n5.nabble.com/quartz-sheduler-problem-tp5527391p5527391.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: quartz sheduler problem

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Maybe try with 2 different trigger names, so have
- report
- report2



On Thu, Mar 1, 2012 at 10:32 AM, madhu <ma...@wipro.com> wrote:
> in my project  we are using  quartz scheduler  and i am getting the below
> error ,when i am running my camel context.  pls help me ?
>
>
> java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.camel.RuntimeCamelException:
> org.quartz.JobPersistenceException: New trigger is not related to the same
> job as the old trigger.
>
>
>
> and  this is my spring config
>
>
> <route>
>                        <from uri="quartz://report?cron=0 0/30 * * * ?" />
>                        <process ref="expWorkItemEscSchedulerGatewayInBoundStageTransformer"/>
>                        <process ref="commonGatewayOutBoundRouter"/>
>                        <choice>
>                                        <when>
>                                        <simple>${header.FileVMPath} equals
> 'vm://SCHX-GW-01_SCHEDULER_SCHEDULER'</simple>
>                                        <to uri="vm://SCHX-GW-01_SCHEDULER_SCHEDULER"/>
>                                        </when>
>                        </choice>
>                </route>
>
>                <route>
>                        <from uri="quartz://report?cron=0 0/30 * * * ?" />
>                        <process ref="qcJobsSchedulerGatewayInBoundStageTransformer"/>
>                        <process ref="commonGatewayOutBoundRouter"/>
>                        <choice>
>                                        <when>
>                                        <simple>${header.FileVMPath} equals
> 'vm://SCHX-GW-01_SCHEDULER_SCHEDULER'</simple>
>                                        <to uri="vm://SCHX-GW-01_SCHEDULER_SCHEDULER"/>
>                                        </when>
>                        </choice>
>                </route>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/quartz-sheduler-problem-tp5527391p5527391.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
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: quartz sheduler problem

Posted by Ashwin Karpe <ak...@fusesource.com>.
Hi,

Can you name your quartz consumers uniquely i.e quartz:report1 and
quartz:report2. I wonder if it is complaining about 2 consumers with the
same URI signature...

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/quartz-sheduler-problem-tp5527391p5527681.html
Sent from the Camel - Users mailing list archive at Nabble.com.