qsLI opened a new issue #8174: URL: https://github.com/apache/shardingsphere/issues/8174
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? 4.1.1 ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? shardingSphere-JDBC ### Expected behavior no exception ### Actual behavior Caused by: org.yaml.snakeyaml.error.YAMLException: No JavaBean properties found in com.sun.proxy.$Proxy203 at org.yaml.snakeyaml.introspector.PropertyUtils.getPropertiesMap(PropertyUtils.java:115) at org.yaml.snakeyaml.introspector.PropertyUtils.createPropertySet(PropertyUtils.java:168) at org.yaml.snakeyaml.introspector.PropertyUtils.getProperties(PropertyUtils.java:161) at org.yaml.snakeyaml.introspector.PropertyUtils.getProperties(PropertyUtils.java:154) at org.yaml.snakeyaml.representer.Representer.getProperties(Representer.java:271) at org.yaml.snakeyaml.representer.Representer$RepresentJavaBean.representData(Representer.java:74) at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:105) at org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:156) at org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:314) at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) at org.yaml.snakeyaml.representer.Representer.representJavaBeanProperty(Representer.java:147) at org.apache.shardingsphere.core.yaml.engine.DefaultYamlRepresenter.representJavaBeanProperty(DefaultYamlRepresenter.java:39) at org.yaml.snakeyaml.representer.Representer.representJavaBean(Representer.java:105) at org.yaml.snakeyaml.representer.Representer$RepresentJavaBean.representData(Representer.java:74) at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:105) at org.yaml.snakeyaml.representer.Representer.representJavaBeanProperty(Representer.java:147) at org.apache.shardingsphere.core.yaml.engine.DefaultYamlRepresenter.representJavaBeanProperty(DefaultYamlRepresenter.java:39) at org.yaml.snakeyaml.representer.Representer.representJavaBean(Representer.java:105) at org.yaml.snakeyaml.representer.Representer$RepresentJavaBean.representData(Representer.java:74) at org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:105) at org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:64) at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:306) at org.yaml.snakeyaml.Yaml.dumpAs(Yaml.java:363) at org.yaml.snakeyaml.Yaml.dumpAsMap(Yaml.java:388) at org.apache.shardingsphere.core.yaml.engine.YamlEngine.marshal(YamlEngine.java:119) at org.apache.shardingsphere.core.config.log.ConfigurationLogger.log(ConfigurationLogger.java:98) at org.apache.shardingsphere.core.config.log.ConfigurationLogger.log(ConfigurationLogger.java:80) at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.AbstractRuntimeContext.<init>(AbstractRuntimeContext.java:59) at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingRuntimeContext.<init>(ShardingRuntimeContext.java:59) at org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource.<init>(ShardingDataSource.java:48) at org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory.createDataSource(ShardingDataSourceFactory.java:50) at com.atour.user.framework.configuration.AtourUserShardingDataBaseConfiguration.atourUserDataSource(AtourUserShardingDataBaseConfiguration.java:106) ### Reason analyze (If you can) snakeyaml cannot marshal proxy class ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. final Properties keyGeneratorProperties = new Properties(); keyGeneratorProperties.put("id.generate.remote", idGenerateRemote); idGenerateRemote is a proxy class. ### Example codes for reproduce this issue (such as a github link). ---------------------------------------------------------------- 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]
