Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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
This should be written up in the plugin JIRA at http://jira.codehaus.org/browse/GRAILSPLUGINS under the Grails-Quartz component.