on ‎2008 Jul 17 10:26 AM
I am creating some jobs using the scheduler api, it appears in the tasks table , but it never gets executed. it throws this exception
Error occurred while submitting a job generated for task 6102837253df11ddca53001e4fc6772a to the Job Execution Runtime. Probably this expiration of the task won't be executed
[EXCEPTION]
java.lang.NullPointerException
at com.sap.engine.services.scheduler.runtime.db.DBHandler.addJobParameters(DBHandler.sqlj:113)
at com.sap.engine.services.scheduler.runtime.db.DBHandler.addJob(DBHandler.sqlj:211)
at com.sap.engine.services.scheduler.runtime.mdb.MDBJobExecutor.executeJob(MDBJobExecutor.java:315)
at com.sap.engine.services.scheduler.runtime.executor.JobExecutorImpl.executeJob(JobExecutorImpl.java:95)
at com.sap.engine.services.scheduler.runtime.JobExecutionRuntimeImpl.executeJobForAllMethods(JobExecutionRuntimeImpl.java:569)
at com.sap.engine.services.scheduler.runtime.JobExecutionRuntimeImpl.executeJob(JobExecutionRuntimeImpl.java:523)
at com.sap.engine.services.scheduler.runtime.RuntimeIntfAccessAsserter.executeJob(RuntimeIntfAccessAsserter.java:265)
at com.sap.engine.services.scheduler.impl.TaskExecutorImpl.executeTask(TaskExecutorImpl.java:87)
at com.sap.engine.services.scheduler.impl.TaskProcessorPQ.run(TaskProcessorPQ.java:130)
i am setting the times like this
Calendar calender = Calendar.getInstance();
calender.set(Calendar.YEAR, 2008);
calender.set(Calendar.MONTH, Calendar.JULY);
calender.set(Calendar.DAY_OF_MONTH, 18);
calender.set(Calendar.HOUR_OF_DAY,14);
calender.set(Calendar.MINUTE, 37);
SchedulerTime schedulerTime = new SchedulerTime(calender.getTime(),TimeZone.getDefault());
RecurringEntry rEntry = new RecurringEntry(schedulerTime,0,1);
SchedulerTask task = SchedulerTask.createSchedulerTask(jobDef.getJobDefinitionId(), jobpardefs, null,
cEntries, null, retPeriod , "NonRefJob", "Cron job", customData );
Request clarification before answering.
Hi,
Looks like this question is on the scheduler that SAP has in some components in the Java stack from before CPS (you can compare this with what sm36/37 do in the ABAP stack, so it is intended for use in the local Java stack only, whereas CPS is intended to be used in your entire infrastructure).
It looks like it complains about setting the job's parameters. Maybe there are required parameters on your job ?
Regards,
Anton.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.