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 2022/01/19 03:46:47 UTC
[GitHub] [shardingsphere] RaigorJiang opened a new issue #14881: NPE occurred when no provider configured in authority rule.
RaigorJiang opened a new issue #14881:
URL: https://github.com/apache/shardingsphere/issues/14881
## Bug Report
### Which version of ShardingSphere did you use?
5.0.1-SNAPSHOT master branch
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Description
Start the Proxy with the following authority rule configuration
```yaml
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@:sharding
# provider:
# type: ALL_PRIVILEGES_PERMITTED
```
Then NPE occurred in ShardingSphereAlgorithmFactory :
```text
Exception in thread "main" java.lang.NullPointerException
at org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmFactory.createAlgorithm(ShardingSphereAlgorithmFactory.java:41)
at org.apache.shardingsphere.authority.rule.AuthorityRule.<init>(AuthorityRule.java:48)
at org.apache.shardingsphere.authority.rule.builder.AuthorityRuleBuilder.build(AuthorityRuleBuilder.java:35)
at org.apache.shardingsphere.authority.rule.builder.AuthorityRuleBuilder.build(AuthorityRuleBuilder.java:31)
at org.apache.shardingsphere.infra.rule.builder.global.GlobalRulesBuilder.buildRules(GlobalRulesBuilder.java:57)
at org.apache.shardingsphere.mode.metadata.MetaDataContextsBuilder.buildGlobalSchemaMetaData(MetaDataContextsBuilder.java:103)
at org.apache.shardingsphere.mode.metadata.MetaDataContextsBuilder.build(MetaDataContextsBuilder.java:98)
at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.beforeBuildContextManager(ClusterContextManagerBuilder.java:108)
at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.build(ClusterContextManagerBuilder.java:85)
at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:84)
at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:71)
```
--
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] terrymanu closed issue #14881: NPE occurred when no provider configured in authority rule.
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #14881:
URL: https://github.com/apache/shardingsphere/issues/14881
--
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