Qianyi951015 opened a new issue, #20513:
URL: https://github.com/apache/shardingsphere/issues/20513
## Bug Report
### Which version of ShardingSphere did you use?
master 6cf1f1e8352d7be5c501a5626ef44e708a5b0d2b
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
ADD RESOURCE success.
### Actual behavior
Got an exception and ADD RESOURCE failed.
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
1. Add resources `ds_0`, `ds_1`, `ds_2`.
```
add resource
ds_0(url="jdbc:mysql://xxx.xx.xx.xx:33306/primary_demo_ds?serverTimezone=UTC&useSSL=false",
user="root",password="xxxxxx"),
ds_1(url="jdbc:mysql://xxx.xx.xx.xx:33307/primary_demo_ds?serverTimezone=UTC&useSSL=false",
user="root",password="xxxxxx"),
ds_2(url="jdbc:mysql://xxx.xx.xx.xx:33308/primary_demo_ds?serverTimezone=UTC&useSSL=false",
user="root",password="xxxxxx");
```
2. Create database discover rule `group0`.
```
CREATE DB_DISCOVERY RULE group_0 ( RESOURCES(ds_0, ds_1, ds_2),
TYPE(NAME='MySQL.MGR',PROPERTIES('group-name'='558edd3c-02ec-11ea-9bb3-080027e39bd2')),
HEARTBEAT(PROPERTIES('keep-alive-cron'='0/5 * * * * ?')) );
```
3. Add resource `resource_0`.
```
ADD RESOURCE resource_0 (
HOST="127.0.0.1",
PORT=3306,
DB="db0",
USER="root",
PASSWORD="123456"
);
```
### Log
```
ERROR 1999 (42000): Unknown exception: java.lang.NullPointerException
```
--
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:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]