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
   
   ![23161622441564_ 
pic_hd](https://user-images.githubusercontent.com/33742097/120148120-4f482b00-c21a-11eb-949a-6e514d658bfe.jpg)
   
   


-- 
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:
[email protected]


Reply via email to