Quartz 0.4.2 plugin doesn't compile correctly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Quartz 0.4.2 plugin doesn't compile correctly

olavgg
I've just added the Quartz plugin to my project, I've not added any jobs/config. I've also tried to run grails clean. Using Grails 1.2.1

When I try to start the application in development I get the following error messages:

 [groovyc] /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/CustomTriggerFactoryBean.java:29: incompatible types
  [groovyc] found   : java.lang.Object
  [groovyc] required: org.quartz.Trigger
  [groovyc]       customTrigger = BeanUtils.instantiateClass(triggerClass);
  [groovyc]                                                 ^
  [groovyc] /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/DefaultGrailsTaskClass.java:70: cannot find symbol
  [groovyc] symbol  : method getReferenceInstance()
  [groovyc] location: class org.codehaus.groovy.grails.plugins.quartz.DefaultGrailsTaskClass
  [groovyc]         getMetaClass().invokeMethod(getReferenceInstance(), EXECUTE, new Object[]{});
  [groovyc]                                     ^
  [groovyc] /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/DefaultGrailsTaskClass.java:74: cannot find symbol
  [groovyc] symbol  : method getReferenceInstance()
  [groovyc] location: class org.codehaus.groovy.grails.plugins.quartz.DefaultGrailsTaskClass
  [groovyc]         getMetaClass().invokeMethod(getReferenceInstance(), EXECUTE, new Object[]{context});
  [groovyc]                                     ^
  [groovyc] /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/GrailsJobFactory.java:74: cannot find symbol
  [groovyc] symbol  : method invokeMethod(java.lang.reflect.Method,java.lang.Object,org.quartz.JobExecutionContext)
  [groovyc] location: class org.springframework.util.ReflectionUtils
  [groovyc]                 ReflectionUtils.invokeMethod(method, job, context);
  [groovyc]                                ^
  [groovyc] 4 errors
  [groovyc]
  [groovyc]
  [groovyc] 1 error
: Compilation Failed

What could be wrong?
Reply | Threaded
Open this post in threaded view
|

Re: Quartz 0.4.2 plugin doesn't compile correctly

burtbeckwith
This works fine in 1.2.1, so if you can upgrade (I'm guessing you're using 1.1.x) that will fix this issue. You should write up a JIRA at http://jira.codehaus.org/browse/GRAILSPLUGINS under the Grails-Quartz component; I doubt Sergey meant for 0.4.2 to only work in 1.2.

Burt

>
> I've just added the Quartz plugin to my project, I've not added any
> jobs/config. I've also tried to run grails clean.
>
> When I try to start the application in development I get the following error
> messages:
>
>  [groovyc]
> /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/CustomTriggerFactoryBean.java:29:
> incompatible types
>   [groovyc] found   : java.lang.Object
>   [groovyc] required: org.quartz.Trigger
>   [groovyc]       customTrigger = BeanUtils.instantiateClass(triggerClass);
>   [groovyc]                                                 ^
>   [groovyc]
> /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/DefaultGrailsTaskClass.java:70:
> cannot find symbol
>   [groovyc] symbol  : method getReferenceInstance()
>   [groovyc] location: class
> org.codehaus.groovy.grails.plugins.quartz.DefaultGrailsTaskClass
>   [groovyc]         getMetaClass().invokeMethod(getReferenceInstance(),
> EXECUTE, new Object[]{});
>   [groovyc]                                     ^
>   [groovyc]
> /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/DefaultGrailsTaskClass.java:74:
> cannot find symbol
>   [groovyc] symbol  : method getReferenceInstance()
>   [groovyc] location: class
> org.codehaus.groovy.grails.plugins.quartz.DefaultGrailsTaskClass
>   [groovyc]         getMetaClass().invokeMethod(getReferenceInstance(),
> EXECUTE, new Object[]{context});
>   [groovyc]                                     ^
>   [groovyc]
> /home/olav/volt/Response-NG/quick-share/plugins/quartz-0.4.2/src/java/org/codehaus/groovy/grails/plugins/quartz/GrailsJobFactory.java:74:
> cannot find symbol
>   [groovyc] symbol  : method
> invokeMethod(java.lang.reflect.Method,java.lang.Object,org.quartz.JobExecutionContext)
>   [groovyc] location: class org.springframework.util.ReflectionUtils
>   [groovyc]                 ReflectionUtils.invokeMethod(method, job,
> context);
>   [groovyc]                                ^
>   [groovyc] 4 errors
>   [groovyc]
>   [groovyc]
>   [groovyc] 1 error
> : Compilation Failed
>
> What could be wrong?
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Quartz 0.4.2 plugin doesn't compile correctly

olavgg
I'm using Grails 1.2.1 for my project, however it's a project upgraded from 1.1.x.

I tried again with Quartz 0.4.1 and now it works(I think), at least it compiles.
Reply | Threaded
Open this post in threaded view
|

Re: Quartz 0.4.2 plugin doesn't compile correctly

Sergey Nebolsin
Hi!

I think that these problems were introduced by the fix of http://jira.codehaus.org/browse/GRAILSPLUGINS-1845

If you're using Grails 1.2.1 then 0.4.2 version should compile just fine, perhaps you have old Spring jars somewhere in your classpath.

Anyway, I think I should find a way to deal with Grails 1.1, looks like 0.4.2 version will not work with it.

Cheers 

On Tue, Mar 2, 2010 at 18:19, olavgg <[hidden email]> wrote:

I'm using Grails 1.2.1 for my project, however it's a project upgraded from
1.1.x.

I tried again with Quartz 0.4.1 and now it works(I think), at least it
compiles.
--
View this message in context: http://n4.nabble.com/Quartz-0-4-2-plugin-doesn-t-compile-correctly-tp1575037p1575137.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru
Reply | Threaded
Open this post in threaded view
|

Re: Quartz 0.4.2 plugin doesn't compile correctly

olavgg
I figured out what was wrong now, the plugin audit-logging is causing the lastest version of the quartz plugin to not compile.
Reply | Threaded
Open this post in threaded view
|

Re: Quartz 0.4.2 plugin doesn't compile correctly

Giovanni De Stefano
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Quartz 0.4.2 plugin doesn't compile correctly

Burt Prior
In reply to this post by Sergey Nebolsin
Hi there,

My project is still using grails 1.1, and I just installed the quartz plugin.
Installation went fine, but when I tried to 'run-app' (after 'clean') I got all the error messages mentioned.

Is there a way to use the quartz plugin using 1.1?

Thanks for your help,
Burt Prior