Quartz Plugin

Quartz plugin can't get session factory after upgrading application to 1.0

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Cannot Reproduce
  • Affects Version/s: None
  • Fix Version/s: 0.3
  • Component/s: None
  • Labels:
    None

Description

I get:

Unable to notify JobListener(s) of Job to be executed: (Job will NOT be executed!). trigger= DEFAULT.StaleEmailConfirmationJobTrigger job= GRAILS_JOBS.StaleEmailConfirmationJob
org.quartz.SchedulerException: JobListener 'sessionBinderListener' threw exception: No SessionFactory specified [See nested exception: java.lang.IllegalArgumentException: No SessionFactory specified]
at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1617)
at org.quartz.core.JobRunShell.notifyListenersBeginning(JobRunShell.java:335)
at org.quartz.core.JobRunShell.run(JobRunShell.java:184)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

  • Nested Exception (Underlying Cause) ---------------
    java.lang.IllegalArgumentException: No SessionFactory specified
    at org.springframework.util.Assert.notNull(Assert.java:112)
    at org.springframework.orm.hibernate3.SessionFactoryUtils.doGetSession(SessionFactoryUtils.java:281)
    at org.springframework.orm.hibernate3.SessionFactoryUtils.getSession(SessionFactoryUtils.java:200)
    at org.codehaus.groovy.grails.plugins.quartz.listeners.SessionBinderJobListener.jobToBeExecuted(SessionBinderJobListener.java:46)
    at org.quartz.core.QuartzScheduler.notifyJobListenersToBeExecuted(QuartzScheduler.java:1615)
    at org.quartz.core.JobRunShell.notifyListenersBeginning(JobRunShell.java:335)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:184)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

... the plugin itself has not been upgraded to 1.0 yet, I will try this to see if it helps.

Activity

Hide
Marc Palmer added a comment -

Nope, locally grails upgrade'd quartz plugin and reinstalled it into project, problem does not go away.

Show
Marc Palmer added a comment - Nope, locally grails upgrade'd quartz plugin and reinstalled it into project, problem does not go away.
Hide
Graeme Rocher added a comment -

Problem needs to be addressed in the quartz plugin, which we can deal with after 1.0

Show
Graeme Rocher added a comment - Problem needs to be addressed in the quartz plugin, which we can deal with after 1.0
Hide
Sergey Nebolsin added a comment -

Marc, I just uploaded 0.3-SNAPSHOT version of the Quartz plugin, could you please confirm if the issue is still valid with this version and provide your job's code in this case?

Show
Sergey Nebolsin added a comment - Marc, I just uploaded 0.3-SNAPSHOT version of the Quartz plugin, could you please confirm if the issue is still valid with this version and provide your job's code in this case?
Hide
Sergey Nebolsin added a comment -

Closing since I cannot reproduce. Feel free to reopen with a reproducible app if this issue still exists in the latest 0.3-SNAPSHOT version.

Show
Sergey Nebolsin added a comment - Closing since I cannot reproduce. Feel free to reopen with a reproducible app if this issue still exists in the latest 0.3-SNAPSHOT version.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: