Scheduler plugin Cron job not running .

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

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

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 .

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?

Hi Robert ,

Thanks for your reply . Yes I have created the global method in the same file where I am executing the job.

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.

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 .

“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.