Erro com vrator task

87 views
Skip to first unread message

car...@fattoriaweb.com.br

unread,
Sep 18, 2013, 11:59:07 AM9/18/13
to caelum-...@googlegroups.com
Estou tentando usar o vraptor task mas, quando start no server ta aparencendo a seguinte exception:

Exception in thread "Thread-2" java.lang.AbstractMethodError: br.com.caelum.vraptor.tasks.TasksMonitor.schedulerStarting()V
    at org.quartz.core.QuartzScheduler.notifySchedulerListenersStarting(QuartzScheduler.java:2267)
    at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:576)
    at org.quartz.core.QuartzScheduler$1.run(QuartzScheduler.java:605)
    at java.lang.Thread.run(Thread.java:722)

Aqui está a classe que estou usando:

@Scheduled(cron="0/10 * * * * ?")
@ApplicationScoped
public class EventosTask implements Task {

    @Override
    public void execute() {
        System.out.println("TESTE");
    }
   
}

Rafael Ponte

unread,
Sep 18, 2013, 12:20:31 PM9/18/13
to caelum-...@googlegroups.com
Olá,

Parece ser problema com versão do Quartz no seu projeto. Que versão você está utlizando e qual versão o plugin sugere?


--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caelum-vrapto...@googlegroups.com.
To post to this group, send email to caelum-...@googlegroups.com.
Visit this group at http://groups.google.com/group/caelum-vraptor.
For more options, visit https://groups.google.com/groups/opt_out.



--
Rafael Ponte
http://www.triadworks.com.br

Lucas Cavalcanti

unread,
Sep 18, 2013, 12:27:48 PM9/18/13
to caelum-vraptor
qual versão do vraptor-tasks vc tá usando?

car...@fattoriaweb.com.br

unread,
Sep 18, 2013, 12:38:12 PM9/18/13
to caelum-...@googlegroups.com

vraptor-tasks-1.0.2.jar
quartz-jobs-2.2.0.jar
quartz-2.2.0.jar

William

unread,
Sep 18, 2013, 12:48:35 PM9/18/13
to caelum-...@googlegroups.com
Conforme o changelog do quartz http://quartz-scheduler.org/documentation/quartz-2.2.x/new-in-quartz-2_2 o método schedulerStarting foi adicionado a interface SchedulerListener na versão 2.2.0.

Recomendo você a utilizar a versão 2.1.1 por enquanto. Estou trabalhando para tornar o plugin compatível com o quartz e vraptor mais recentes.

car...@fattoriaweb.com.br

unread,
Sep 18, 2013, 1:03:39 PM9/18/13
to caelum-...@googlegroups.com
Troquei a versão do quartz para a 2.1.7 e ta funcionando.

Vlw pela ajuda.


Em quarta-feira, 18 de setembro de 2013 12h59min07s UTC-3, car...@fattoriaweb.com.br escreveu:
Reply all
Reply to author
Forward
0 new messages