boycai opened a new issue #11092: URL: https://github.com/apache/shardingsphere/issues/11092
### Which version of ShardingSphere did you use? shardingsphere-jdbc-core-5.0.0-beta ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? shardingsphere-jdbc ### Actual behavior throw Exception ### Example codes for reproduce this issue (such as a github link). **My code:** DataSource dataSource = YamlShardingSphereDataSourceFactory.createDataSource(yamlBytes); **To print the stack as follows:** Caused by: org.yaml.snakeyaml.constructor.ConstructorException: Can't construct a java object for tag:yaml.org,2002:com.alibaba.druid.pool.DruidDataSource; exception=Class is not accepted: com.alibaba.druid.pool.DruidDataSource in 'reader', line 4, column 8: ds0: !!com.alibaba.druid.pool.DruidDa ... ^ at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:313) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:207) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:196) at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:462) at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:183) at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:443) at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:136) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:207) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:196) at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.newInstance(Constructor.java:281) at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:246) ... 102 common frames omitted Caused by: java.lang.IllegalArgumentException: Class is not accepted: com.alibaba.druid.pool.DruidDataSource at org.apache.shardingsphere.infra.yaml.engine.constructor.ShardingSphereYamlConstructor.getClassForName(ShardingSphereYamlConstructor.java:60) at org.yaml.snakeyaml.constructor.Constructor.getClassForNode(Constructor.java:640) at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.getConstructor(Constructor.java:298) at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:308) ... 112 common frames omitted -- 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: notifications-unsubscr...@shardingsphere.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org