sandynz opened a new issue #9282:
URL: https://github.com/apache/shardingsphere/issues/9282
### Which version of ShardingSphere did you use?
5.0.0-RC1-SNAPSHOT, commit: 2770484c6a0a13d8401eb309d0dac38c373a4c30
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
Started with no exception
### Actual behavior
```
Exception in thread "main" java.lang.NullPointerException
at
org.apache.shardingsphere.proxy.initializer.impl.AbstractBootstrapInitializer.findBackendMySQLDataSource(AbstractBootstrapInitializer.java:114)
at
org.apache.shardingsphere.proxy.initializer.impl.AbstractBootstrapInitializer.setDatabaseServerInfo(AbstractBootstrapInitializer.java:103)
at
org.apache.shardingsphere.proxy.initializer.impl.AbstractBootstrapInitializer.init(AbstractBootstrapInitializer.java:63)
at
org.apache.shardingsphere.test.integration.ProxyBootstrapTest.main(ProxyBootstrapTest.java:47)
```
### Reason analyze (If you can)
Proxy start when remote configuration is incomplete
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
1, Enable governance in `server.yaml`
```
governance:
name: governance_ds
registryCenter:
type: ZooKeeper
serverLists: localhost:2181
props:
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: false
```
2, Clean configuration, include `config-sharding.yaml` and remote
configuration in ZooKeeper governance_ds
3, Client connect to proxy, run `CREATE DATABASE sharding_db;`
4, Restart proxy
### Example codes for reproduce this issue (such as a github link).
----------------------------------------------------------------
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:
[email protected]