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/07/04 05:57:33 UTC

[GitHub] [incubator-shardingsphere] Siceberg commented on issue #2656: authentication.password in server.yaml is not working

Siceberg commented on issue #2656: authentication.password in server.yaml is not working
URL: https://github.com/apache/incubator-shardingsphere/issues/2656#issuecomment-508349181
 
 
   Different in new configuration and [Doc](https://shardingsphere.apache.org/document/current/en/manual/sharding-proxy/configuration/), where can I see the relevant documentation?
   
   And I use your configuration, then get error in log:
   
   ```
   Exception in thread "main" Cannot create property=authentication for JavaBean=org.apache.shardingsphere.shardingproxy.config.yaml.YamlProxyServerConfiguration@3551e0c4
    in 'reader', line 1, column 1:
       authentication:
       ^
   Cannot create property=users for JavaBean=org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication@74ee003d
    in 'reader', line 2, column 3:
         users:
         ^
   Unable to find property 'users' on class: org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication
    in 'reader', line 3, column 5:
           root: # username
           ^
   
    in 'reader', line 2, 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@74ee003d
    in 'reader', line 2, column 3:
         users:
         ^
   Unable to find property 'users' on class: org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication
    in 'reader', line 3, column 5:
           root: # username
           ^
   
   	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.BaseConstructor.constructObject(BaseConstructor.java:182)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:297)
   	... 11 more
   Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'users' on class: org.apache.shardingsphere.core.yaml.config.common.YamlAuthentication
   	at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:132)
   	at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:121)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:322)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)
   	... 14 more
   ```

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