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 2019/08/26 08:42:05 UTC

[GitHub] [incubator-shardingsphere] Myshiner opened a new issue #2925: Sharding-proxy v4.0.0-RC2 can't config multi-users

Myshiner opened a new issue #2925: Sharding-proxy v4.0.0-RC2 can't config multi-users
URL: https://github.com/apache/incubator-shardingsphere/issues/2925
 
 
   Project: sharding-proxy
   Version: 4.0.0-RC2
   
   when i config multi-users it throw errors. Here are the configuration code.
   **orchestration:
     name: orchestration_ds
     overwrite: true
     registry:
       type: zookeeper
       serverLists: 10.60.0.183:2181
       namespace: orchestration
   
   authentication:
     users:
       root:
       password: root
     admin:
       password: admin
       authorizedSchemas: neworiental_v3,neworiental_trail**
   Is there any wrong config ?
   Please refer to the errors from the following messeges.
   -------------------------------------------
   Exception in thread "main" Cannot create property=authentication for JavaBean=org.apache.shardingsphere.shardingproxy.config.yaml.YamlProxyServerConfiguration@d1cfd52
   in 'reader', line 7, column 1:
   orchestration:
   ^
   Cannot create property=users for JavaBean=org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication@4c8c4559
   in 'reader', line 16, column 3:
   users:
   ^
   Unable to find property 'users' on class: org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication
   in 'reader', line 17, column 5:
   root:
   ^
   
   in 'reader', line 16, column 3:
   users:
   ^
   
       at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:312)
       at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:189)
       at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:345)
       at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
       at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141)
       at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127)
       at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450)
       at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:410)
       at org.apache.shardingsphere.core.yaml.engine.YamlEngine.unmarshal(YamlEngine.java:59)
       at org.apache.shardingsphere.shardingproxy.config.ShardingConfigurationLoader.loadServerConfiguration(ShardingConfigurationLoader.java:77)
       at org.apache.shardingsphere.shardingproxy.config.ShardingConfigurationLoader.load(ShardingConfigurationLoader.java:58)
       at org.apache.shardingsphere.shardingproxy.Bootstrap.main(Bootstrap.java:68)
   Caused by: Cannot create property=users for JavaBean=org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication@4c8c4559
   in 'reader', line 16, column 3:
   users:
   ^
   Unable to find property 'users' on class: org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication
   in 'reader', line 17, column 5:
   root:

----------------------------------------------------------------
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


With regards,
Apache Git Services