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 2021/05/31 06:15:45 UTC
[GitHub] [shardingsphere] zjcnb opened a new issue #10577: Encrypt-raw-jdbc-example YamlConfigurationExampleMain test are failure : Incorrect configuration item: the property password of the dataSource, because argument type mismatch
zjcnb opened a new issue #10577:
URL: https://github.com/apache/shardingsphere/issues/10577
## Bug Report
### Which version of ShardingSphere did you use?
5.0.0-RC1-SNAPSHOT
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
Complete the example as normal
### Actual behavior
`Exception in thread "main" org.apache.shardingsphere.infra.config.exception.ShardingSphereConfigurationException: Incorrect configuration item: the property password of the dataSource, because argument type mismatch at org.apache.shardingsphere.infra.config.datasource.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:122) at org.apache.shardingsphere.infra.config.datasource.DataSourceConverter.lambda$getDataSourceMap$0(DataSourceConverter.java:43) at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321) at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1699) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at j
ava.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at org.apache.shardingsphere.infra.config.datasource.DataSourceConverter.getDataSourceMap(DataSourceConverter.java:42) at org.apache.shardingsphere.infra.yaml.swapper.YamlDataSourceConfigurationSwapper.swapToDataSources(YamlDataSourceConfigurationSwapper.java:44) at org.apache.shardingsphere.driver.api.yaml.YamlShardingSphereDataSourceFactory.createDataSource(YamlShardingSphereDataSourceFactory.java:56) at org.apache.shardingsphere.example.encrypt.table.raw.jdbc.YamlConfigurationExampleMain.main(YamlConfigurationExampleMain.java:34)
`
### Reason analyze (If you can)
My database password is a number and the YAML configuration is automatically converted to INTEGER when loaded. But to set the password, the required parameter type are String

--
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
[GitHub] [shardingsphere] terrymanu closed issue #10577: Encrypt-raw-jdbc-example YamlConfigurationExampleMain test are failure : Incorrect configuration item: the property password of the dataSource, because argument type mismatch
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #10577:
URL: https://github.com/apache/shardingsphere/issues/10577
--
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