Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

props in V2 not getting loaded #83

Open
jglapa opened this issue Feb 3, 2017 · 0 comments
Open

props in V2 not getting loaded #83

jglapa opened this issue Feb 3, 2017 · 0 comments

Comments

@jglapa
Copy link

jglapa commented Feb 3, 2017

I'm migrating a project to Grails3 and just wasted a lot of time figuring out why am I getting really strange errors. Just in case somebody encounters exception like: PSQLException: Bad value for type long : \x it means that your org.quartz.jobStore.driverDelegateClass property is incorrect or not set all. In my case it was the second thing.

After debugging and comparing the code of plugin in v1 and v2 I've came to a conclusion that those lines of code are missing in v2:
https://github.com/grails-plugins/grails-quartz/blob/v1.0/QuartzGrailsPlugin.groovy#L398-L400

v2 for reference : https://github.com/grails-plugins/grails-quartz/blob/master/src/main/groovy/quartz/QuartzGrailsPlugin.groovy#L159-L168

So if anybody had a config like that when using plugin v1 and Grails 2.x:

quartz {
    autoStartup = true
    jdbcStore = true
    waitForJobsToCompleteOnShutdown = true
    exposeSchedulerInRepository = false

    props {
        scheduler.skipUpdateCheck = true
        scheduler.idleWaitTime = 1000

        threadPool.'class' = 'org.quartz.simpl.SimpleThreadPool'
        threadPool.threadCount = 10
        threadPool.threadPriority = 7

        jobStore.misfireThreshold = 60000

        jobStore.'class' = 'org.quartz.impl.jdbcjobstore.JobStoreTX'
        jobStore.driverDelegateClass = 'org.quartz.impl.jdbcjobstore.PostgreSQLDelegate'

        jobStore.useProperties = false
        jobStore.tablePrefix = 'QRTZ_'
        jobStore.isClustered = true
        jobStore.clusterCheckinInterval = 5000

        plugin {
            triggerHistory.class = 'org.quartz.plugins.history.LoggingTriggerHistoryPlugin'
            ...
        }
    }
}

he should remove the props { } outer block and things should get better.

It makes me wonder why was this done like that in v1 ? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant