Scheduler plugin Cron job not running .

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Scheduler plugin Cron job not running .

Postby ashutoslenka426 » Fri May 27, 2016 12:20 pm

Hi All ,

I am using a cron job in the batch processor module . It is not running . I am trying from local developer . I am using Servoy 7.4.2 . Please find the code
Code: Select all
plugins.scheduler.addCronJob(jobName,"0 45 15 ? * MON,TUE,WED,THU,FRI,SAT,SUN *",globals.test12);

I am getting following error in the server log
Code: Select all
2016-05-27 15:45   scheduler_Worker-1   ERROR   org.quartz.core.ErrorLogger   Job (3E6A8F17-C004-4129-81F3-61ACF4BA5F26.schedule threw an exception.       
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoSuchMethodError: com.servoy.j2db.plugins.IClientPluginAccess.executeMethod(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;]
       at org.quartz.core.JobRunShell.run(JobRunShell.java:227)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
    Caused by: java.lang.NoSuchMethodError: com.servoy.j2db.plugins.IClientPluginAccess.executeMethod(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;
       at com.servoy.extensions.plugins.scheduler.ExecuteScriptMethodJob.execute(ExecuteScriptMethodJob.java:72)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
       ... 1 more
2016-05-27 15:45   scheduler_Worker-1   ERROR   org.quartz.core.JobRunShell   Job 3E6A8F17-C004-4129-81F3-61ACF4BA5F26.schedule threw an unhandled Exception:       
java.lang.NoSuchMethodError: com.servoy.j2db.plugins.IClientPluginAccess.executeMethod(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;ZZ)Ljava/lang/Object;
       at com.servoy.extensions.plugins.scheduler.ExecuteScriptMethodJob.execute(ExecuteScriptMethodJob.java:72)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)


Please provide some suggestion in this .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Scheduler plugin Cron job not running .

Postby ROCLASI » Fri May 27, 2016 12:42 pm

Hi Ashutos,

The exception pretty much says it all: java.lang.NoSuchMethodError.
I.e. No Such Method.
Is the globals.test12 method accessible from the batch processor?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Scheduler plugin Cron job not running .

Postby ashutoslenka426 » Fri May 27, 2016 12:45 pm

Hi Robert ,

Thanks for your reply . Yes I have created the global method in the same file where I am executing the job.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Scheduler plugin Cron job not running .

Postby ROCLASI » Fri May 27, 2016 12:50 pm

Hi Ashutos,

Not sure what is going on then. I just tested it in my developer and it works as expected.
What version of Servoy is this?
Also be aware that names are case sensitive.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Scheduler plugin Cron job not running .

Postby ashutoslenka426 » Fri May 27, 2016 12:54 pm

Hi Robert ,

Thanks for your reply . The Servoy version is 7.4.2 . I am also using the scheduler plugin from servoy 8.0 . Still same issue . The name of the method is exactly same .

Please provide some suggestion .
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: Scheduler plugin Cron job not running .

Postby jcompagner » Tue May 31, 2016 2:04 pm

"I am also using the scheduler plugin from servoy 8.0"

that could very well be the problem, you are mixing stuff now, that plugin calls a new api method of servoy, i think this plugin needs 7.4.3 or higher.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 13 guests