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 2022/04/22 09:46:06 UTC
[GitHub] [shardingsphere] By1995 opened a new issue, #17009: bug: DataSourceProvidedDatabaseConfiguration cannot be cast to DataSourceGeneratedDatabaseConfiguration
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu commented on issue #17009: DataSourceProvidedDatabaseConfiguration cast to DataSourceGeneratedDatabaseConfiguration
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #17009:
URL: https://github.com/apache/shardingsphere/issues/17009#issuecomment-1134146352
No response for this issue, I just close it.
--
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-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #17009: obvious error: DataSourceProvidedDatabaseConfiguration cast to DataSourceGeneratedDatabaseConfiguration
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #17009:
URL: https://github.com/apache/shardingsphere/issues/17009#issuecomment-1106319356
@By1995 Can you submit issue according to bug template?
--
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-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu closed issue #17009: DataSourceProvidedDatabaseConfiguration cast to DataSourceGeneratedDatabaseConfiguration
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #17009: DataSourceProvidedDatabaseConfiguration cast to DataSourceGeneratedDatabaseConfiguration
URL: https://github.com/apache/shardingsphere/issues/17009
--
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-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org