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 2021/06/18 21:26:35 UTC

[GitHub] [shardingsphere] wolegequya edited a comment on issue #10472: java.lang.String cannot be cast to org.apache.shardingsphere.infra.yaml.config.YamlRuleConfiguration

wolegequya edited a comment on issue #10472:
URL: https://github.com/apache/shardingsphere/issues/10472#issuecomment-864005856


   Using YML configuration, I also encountered the same problem:
    java.lang.String cannot be cast to org.apache.shardingsphere
   
   Check the source code to confirm that it is:
   
   YamlEngine.unmarshal(bytes, YamlRootRuleConfigurations.class);
   
   When the corresponding collection < yamlruleconfiguration > rules attribute in is changed to string type, it seems that it is the problem of SPI calling mechanism? 
   
   How can it be solved?


-- 
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:
users@infra.apache.org