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/02 04:12:40 UTC
[GitHub] [shardingsphere-elasticjob] takeseem opened a new issue #1950: NPE
takeseem opened a new issue #1950:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1950
## Bug Report
throw NPE in [InstanceService.getAvailableJobInstances()](https://github.com/apache/shardingsphere-elasticjob/blob/master/elasticjob-lite/elasticjob-lite-core/src/main/java/org/apache/shardingsphere/elasticjob/lite/internal/instance/InstanceService.java#L73) when upgrade from 3.0.0-RC1 to 3.0.0.
```
2021-08-02 11:56:20.014 ERROR [AlertSendJob_Worker-1] [{}] Job (DEFAULT.AlertSendJob threw an exception. (QuartzScheduler.java:2407)org.quartz.core.ErrorLogger.schedulerError
org.quartz.SchedulerException: Job threw an unhandled exception.
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-2.3.2.jar:?]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) ~[quartz-2.3.2.jar:?]
Caused by: java.lang.NullPointerException
at org.apache.shardingsphere.elasticjob.lite.internal.instance.InstanceService.getAvailableJobInstances(InstanceService.java:73) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
at org.apache.shardingsphere.elasticjob.lite.internal.sharding.ShardingService.shardingIfNecessary(ShardingService.java:111) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJobFacade.getShardingContexts(LiteJobFacade.java:113) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:85) ~[elasticjob-executor-kernel-3.0.0.jar:3.0.0]
at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?]
... 1 more
```
```
elasticjob.jobs.AlertSendJob.elastic-job-class=xxxcenter.job.SendJob
elasticjob.jobs.AlertSendJob.cron=0/5 * * * * ?
elasticjob.jobs.AlertSendJob.sharding-total-count=2
```
--
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
[GitHub] [shardingsphere-elasticjob] TeslaCN closed issue #1950: NPE in InstanceService.getAvailableJobInstances
Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #1950:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1950
--
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