lifejwang11 opened a new issue, #27431:
URL: https://github.com/apache/shardingsphere/issues/27431
### Which version of ShardingSphere did you use?
5.4.0
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
i use
**examples/shardingsphere-proxy-example/shardingsphere-proxy-boot-mybatis-example/src/mian/resources/conf/***.yaml**
### Actual behavior
### Reason analyze (If you can)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
i copy **conf** to **sharding-proxy/config**,i start by **/bin/start.sh**
`Exception in thread "main" Cannot create property=rules for
JavaBean=org.apache.shardingsphere.proxy.backend.config.yaml.YamlProxyDatabaseConfiguration@212bf671
in 'reader', line 113, column 1:
databaseName: sharding_db
^
No single argument constructor found for interface
org.apache.shardingsphere.infra.yaml.config.pojo.rule.YamlRuleConfiguration
in 'reader', line 136, column 2:
tables:
^
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:321)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:207)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:358)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:270)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:253)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:207)
at
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:191)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:477)
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:443)
at
org.apache.shardingsphere.infra.util.yaml.YamlEngine.unmarshal(YamlEngine.java:54)
at
org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.loadDatabaseConfiguration(ProxyConfigurationLoader.java:127)
at
org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.loadDatabaseConfigurations(ProxyConfigurationLoader.java:118)
at
org.apache.shardingsphere.proxy.backend.config.ProxyConfigurationLoader.load(ProxyConfigurationLoader.java:68)
at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:52)
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument
constructor found for interface
org.apache.shardingsphere.infra.yaml.config.pojo.rule.YamlRuleConfiguration
at
org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor.java:417)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:270)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:253)
at
org.yaml.snakeyaml.constructor.SafeConstructor.processDuplicateKeys(SafeConstructor.java:108)
at
org.yaml.snakeyaml.constructor.SafeConstructor.flattenMapping(SafeConstructor.java:81)
at
org.yaml.snakeyaml.constructor.SafeConstructor.flattenMapping(SafeConstructor.java:76)
at
org.yaml.snakeyaml.constructor.SafeConstructor.constructSet2ndStep(SafeConstructor.java:218)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructSet(BaseConstructor.java:545)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:199)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:270)
at
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:253)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.newInstance(Constructor.java:333)
at
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:298)
... 13 more
`
### Example codes for reproduce this issue (such as a github link)
[conf](https://github.com/lifejwang11/shardingproxy-issuse)
--
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]