You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/08/26 08:58:24 UTC

[GitHub] [shardingsphere-elasticjob] ilovewsy commented on issue #1845: error when i use elastic-job-lite with java api

ilovewsy commented on issue #1845:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1845#issuecomment-906224088


   i also get the same error when i run it with java -jar
   16:51:35.005 [MySimpleJob_Worker-1] DEBUG org.quartz.core.JobRunShell - Calling execute on job DEFAULT.MySimpleJob
   16:51:35.007 [MySimpleJob_Worker-1] ERROR org.quartz.core.JobRunShell - Job DEFAULT.MySimpleJob threw an unhandled Exception:
   java.lang.NullPointerException: null
   	at org.apache.shardingsphere.elasticjob.executor.context.ExecutorContext.get(ExecutorContext.java:75)
   	at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:79)
   	at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35)
   	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
   16:51:35.007 [MySimpleJob_Worker-1] ERROR org.quartz.core.ErrorLogger - Job (DEFAULT.MySimpleJob threw an exception.
   org.quartz.SchedulerException: Job threw an unhandled exception.
   	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
   	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
   Caused by: java.lang.NullPointerException: null
   	at org.apache.shardingsphere.elasticjob.executor.context.ExecutorContext.get(ExecutorContext.java:75)
   	at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:79)
   	at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35)
   	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   	... 1 common frames omitted


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org