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 2020/10/30 08:54:54 UTC
[GitHub] [shardingsphere-elasticjob] gzdzss opened a new issue #1683: Run example is error
gzdzss opened a new issue #1683:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1683
ElasticJob-Lite
Change the code
```java
private static void setEmailProperties(final JobConfiguration jobConfig) {
//jobConfig.getProps().setProperty(EmailPropertiesConstants.HOST, "host");
jobConfig.getProps().setProperty(EmailPropertiesConstants.PORT, "465");
jobConfig.getProps().setProperty(EmailPropertiesConstants.USERNAME, "username");
jobConfig.getProps().setProperty(EmailPropertiesConstants.PASSWORD, "password");
jobConfig.getProps().setProperty(EmailPropertiesConstants.FROM, "from@xxx.xx");
jobConfig.getProps().setProperty(EmailPropertiesConstants.TO, "to1@xxx.xx,to1@xxx.xx");
}
```
**Run :** org.apache.shardingsphere.elasticjob.lite.example.JavaMain
### Actual behavior
```
[ERROR] 2020-10-30 16:48:34,185 --main-- [org.apache.zookeeper.server.NIOServerCnxnFactory] Thread Thread[main,5,main] died
java.lang.NullPointerException: null
at java.util.Hashtable.put(Hashtable.java:460) ~[na:1.8.0_231]
at org.apache.shardingsphere.elasticjob.error.handler.email.EmailJobErrorHandler.createSessionProperties(EmailJobErrorHandler.java:78) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.error.handler.email.EmailJobErrorHandler.init(EmailJobErrorHandler.java:68) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.infra.spi.ElasticJobServiceLoader.newTypedServiceInstance(ElasticJobServiceLoader.java:83) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.error.handler.JobErrorHandlerFactory.createHandler(JobErrorHandlerFactory.java:51) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.<init>(ElasticJobExecutor.java:77) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.<init>(ElasticJobExecutor.java:64) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.lite.internal.schedule.JobScheduler.<init>(JobScheduler.java:85) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.lite.api.bootstrap.impl.OneOffJobBootstrap.<init>(OneOffJobBootstrap.java:40) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.lite.example.JavaMain.setUpOneOffJobWithEmail(JavaMain.java:130) ~[classes/:na]
at org.apache.shardingsphere.elasticjob.lite.example.JavaMain.main(JavaMain.java:76) ~[classes/:na]
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] terrymanu closed issue #1683: Run example is error
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #1683:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1683
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org