Quartz Plugin

Quartz Plugin : IllegalArgumentException at bootstrap

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 0.4.1
  • Fix Version/s: 0.4.2
  • Component/s: None
  • Labels:
    None
  • Environment:
    jdk5, grails 1.1.1, maven2.0.10, QuartzPlugin0.4.1

Description

Using the cron trigger, or the simple trigger as shown on the http://www.grails.org/Quartz+plugin page, i got an exception :
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [org.codehaus.groovy.runtime.GStringImpl] to required type [java
.lang.String] for property 'name': no matching editors or conversion strategy found

I tracked the problem, and found that changing one line with toString() fix the problem.
That line is line 114 of TriggersConfigBuilder like this:
if(triggerAttributes[GTCP.NAME] == null) triggerAttributes[GTCP.NAME] = "${jobName}${triggerNumber++}".toString()

Hope this helps

Activity

Hide
Burt Beckwith added a comment -

This should be written up in the plugin JIRA at http://jira.codehaus.org/browse/GRAILSPLUGINS under the Grails-Quartz component.

Show
Burt Beckwith added a comment - This should be written up in the plugin JIRA at http://jira.codehaus.org/browse/GRAILSPLUGINS under the Grails-Quartz component.
Hide
Lee Butts added a comment -

to work around this, you can specify the name in the trigger definition

e.g.

static triggers = {
    simple(name:'someuniquename', ...)
}
Show
Lee Butts added a comment - to work around this, you can specify the name in the trigger definition e.g.
static triggers = {
    simple(name:'someuniquename', ...)
}

People

Vote (6)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: