org.quartz.JobExecutionException: No receiver with key "connector.quartz.mule.default" could be found in connector "quartz://eventTimer"

MuleSoft JIRA | Victor Bonillo | 5 years ago
  1. 0

    Define two separate Mule applications, each with a quartz inbound endpoint, e.g.: {noformat} <quartz:inbound-endpoint jobName="job1" cronExpression="0 0/1 * ? * *"> <quartz:event-generator-job> <quartz:payload>job1</quartz:payload> </quartz:event-generator-job> </quartz:inbound-endpoint> {noformat} (See quartz.jobs.tar.gz in http://forums.mulesoft.org/thread.jspa?threadID=4550) When the second application is deployed, the timer in the first application produces only the following: {noformat} INFO 2011-01-13 17:46:00,018 QuartzScheduler_Worker-5 org.quartz.core.JobRunShell: Job mule.quartz://job1 threw a JobExecutionException: org.quartz.JobExecutionException: No receiver with key "connector.quartz.0" could be found in connector "quartz://job1" at org.mule.transport.quartz.jobs.EventGeneratorJob.execute(EventGeneratorJob.java:81) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529) {noformat} ... and the remainder of the application doesn't execute. If a quartz connector is explicitly declared, then its name is used instead of "quartz://job1", but the message is similar. A workaround has each application creating its own scheduler(factory): {noformat} <quartz:connector name="quartz.connector" scheduler-ref="scheduler1"/> <spring:bean id="scheduler1" factory-bean="scheduler.factory1" factory-method="getScheduler"/> <spring:bean id="scheduler.factory1" class="org.quartz.impl.StdSchedulerFactory"> <spring:constructor-arg> <spring:props> <spring:prop key="org.quartz.scheduler.instanceName">scheduler1</spring:prop> <spring:prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</spring:prop> <spring:prop key="org.quartz.threadPool.threadCount">1</spring:prop> </spring:props> </spring:constructor-arg> </spring:bean> {noformat} (See quartz.jobs.solution.tar.gz in http://forums.mulesoft.org/thread.jspa?threadID=4550)

    MuleSoft JIRA | 6 years ago | Cliff Redmond
    org.quartz.JobExecutionException: No receiver with key "connector.quartz.0" could be found in connector "quartz://job1"
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Define two separate Mule applications, each with a quartz inbound endpoint, e.g.: {noformat} <quartz:inbound-endpoint jobName="job1" cronExpression="0 0/1 * ? * *"> <quartz:event-generator-job> <quartz:payload>job1</quartz:payload> </quartz:event-generator-job> </quartz:inbound-endpoint> {noformat} (See quartz.jobs.tar.gz in http://forums.mulesoft.org/thread.jspa?threadID=4550) When the second application is deployed, the timer in the first application produces only the following: {noformat} INFO 2011-01-13 17:46:00,018 QuartzScheduler_Worker-5 org.quartz.core.JobRunShell: Job mule.quartz://job1 threw a JobExecutionException: org.quartz.JobExecutionException: No receiver with key "connector.quartz.0" could be found in connector "quartz://job1" at org.mule.transport.quartz.jobs.EventGeneratorJob.execute(EventGeneratorJob.java:81) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529) {noformat} ... and the remainder of the application doesn't execute. If a quartz connector is explicitly declared, then its name is used instead of "quartz://job1", but the message is similar. A workaround has each application creating its own scheduler(factory): {noformat} <quartz:connector name="quartz.connector" scheduler-ref="scheduler1"/> <spring:bean id="scheduler1" factory-bean="scheduler.factory1" factory-method="getScheduler"/> <spring:bean id="scheduler.factory1" class="org.quartz.impl.StdSchedulerFactory"> <spring:constructor-arg> <spring:props> <spring:prop key="org.quartz.scheduler.instanceName">scheduler1</spring:prop> <spring:prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</spring:prop> <spring:prop key="org.quartz.threadPool.threadCount">1</spring:prop> </spring:props> </spring:constructor-arg> </spring:bean> {noformat} (See quartz.jobs.solution.tar.gz in http://forums.mulesoft.org/thread.jspa?threadID=4550)

    MuleSoft JIRA | 6 years ago | Cliff Redmond
    org.quartz.JobExecutionException: No receiver with key "connector.quartz.0" could be found in connector "quartz://job1"
  4. 0

    Two separate mule applications, each one with a quartz inbound endpoint defined (see samples attached) and configured with quartz cluster support (org.quartz.jobStore.isClustered=true) give the following exceptions: In app1's logs: INFO 2012-11-07 17:27:35,021 [instanceName_scheduler2_Worker-1] org.quartz.core.JobRunShell: Job mule.quartz://job1 threw a JobExecutionException: org.quartz.JobExecutionException: No connector named "quartz.connector1" found in MuleManager at org.mule.transport.quartz.jobs.EventGeneratorJob.doExecute(EventGeneratorJob.java:65) at org.mule.transport.quartz.jobs.AbstractJob.execute(AbstractJob.java:36) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534) In app2's logs: INFO 2012-11-07 17:29:20,010 [instanceName_scheduler1_Worker-3] org.quartz.core.JobRunShell: Job mule.quartz://job2 threw a JobExecutionException: org.quartz.JobExecutionException: No receiver with key "quartz.connector1" could be found in connector "quartz://job2" at org.mule.transport.quartz.jobs.EventGeneratorJob.doExecute(EventGeneratorJob.java:71) at org.mule.transport.quartz.jobs.AbstractJob.execute(AbstractJob.java:36) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534) To reproduce: 1) Install the tables_mysql.sql script to create the quartz clustering tables 2) Deploy the attached apps to a Mule standalone 3.3.1

    MuleSoft JIRA | 4 years ago | Gabriel Dimech
    org.quartz.JobExecutionException: No receiver with key "quartz.connector1" could be found in connector "quartz://job2"

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.quartz.JobExecutionException

      No receiver with key "connector.quartz.mule.default" could be found in connector "quartz://eventTimer"

      at org.mule.transport.quartz.jobs.EventGeneratorJob.execute()
    2. Quartz Transport
      EventGeneratorJob.execute
      1. org.mule.transport.quartz.jobs.EventGeneratorJob.execute(EventGeneratorJob.java:81)
      1 frame
    3. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534)
      2 frames