By1995 opened a new issue, #17009:
URL: https://github.com/apache/shardingsphere/issues/17009

   this is a obvious error, why
   in method createMetaDataContextsBuilder :
   result.addDatabase(each, databaseType, createDatabaseConfiguration(each, 
metaDataPersistService, parameter), props);
   in method  createDatabaseConfiguration:
   return new DataSourceProvidedDatabaseConfiguration(dataSources, 
databaseRuleConfigs);
   in method buildRules:
   DataSourceGeneratedDatabaseConfiguration configuration = 
(DataSourceGeneratedDatabaseConfiguration) databaseConfig;
   
   
   
   Exception in thread "main" java.lang.ClassCastException: 
org.apache.shardingsphere.infra.config.database.impl.DataSourceProvidedDatabaseConfiguration
 cannot be cast to 
org.apache.shardingsphere.infra.config.database.impl.DataSourceGeneratedDatabaseConfiguration
        at 
org.apache.shardingsphere.infra.rule.builder.schema.SchemaRulesBuilder.buildRules(SchemaRulesBuilder.java:70)
        at 
org.apache.shardingsphere.mode.metadata.MetaDataContextsBuilder.getDatabaseRules(MetaDataContextsBuilder.java:105)
        at 
org.apache.shardingsphere.mode.metadata.MetaDataContextsBuilder.addDatabase(MetaDataContextsBuilder.java:83)
        at 
org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.createMetaDataContextsBuilder(ClusterContextManagerBuilder.java:137)
        at 
org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.build(ClusterContextManagerBuilder.java:76)
        at 
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:75)
        at 
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:60)
        at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:47)


-- 
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]

Reply via email to