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 2020/03/23 11:09:01 UTC

[GitHub] [incubator-shardingsphere] wangjing112 opened a new issue #4901: proxool pool , jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter

wangjing112 opened a new issue #4901: proxool pool ,jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter
URL: https://github.com/apache/incubator-shardingsphere/issues/4901
 
 
   use proxool pool in jdbc is work fine;
   the cfg
   `
   
   dataSources:
     db0: !!org.logicalcobwebs.proxool.ProxoolDataSource
       alias: raid-game0
       driverUrl: jdbc:mysql://host0:3306/db0?useUnicode=true&characterEncoding=utf-8&useServerPrepStmts=true&autoReconnect=true
       driver: com.mysql.jdbc.Driver
       user: root
       password: 123456
     db1: !!org.logicalcobwebs.proxool.ProxoolDataSource
       alias: raid-game1
       driverUrl: jdbc:mysql://host1:3306/db1?useUnicode=true&characterEncoding=utf-8&useServerPrepStmts=true&autoReconnect=true
       driver: com.mysql.jdbc.Driver
       user: root
       password: 123456
   `
   in proxy error log:
   `
   Exception in thread "main" java.lang.ClassCastException: org.logicalcobwebs.proxool.ProxoolDataSource cannot be cast to org.apache.shardingsphere.shardingproxy.config.yaml.YamlDataSourceParameter
           at org.apache.shardingsphere.shardingproxy.util.DataSourceConverter.getDataSourceConfigurationMap(DataSourceConverter.java:85)
           at org.apache.shardingsphere.shardingproxy.Bootstrap.getDataSourceConfigurationMap(Bootstrap.java:165)
           at org.apache.shardingsphere.shardingproxy.Bootstrap.initShardingOrchestrationFacade(Bootstrap.java:151)
           at org.apache.shardingsphere.shardingproxy.Bootstrap.startWithRegistryCenter(Bootstrap.java:110)
           at org.apache.shardingsphere.shardingproxy.Bootstrap.main(Bootstrap.java:83)
   `

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


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu commented on issue #4901: proxool pool , jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #4901: proxool pool ,jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter
URL: https://github.com/apache/incubator-shardingsphere/issues/4901#issuecomment-604333766
 
 
   Wrong configuration, please check document or example

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


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu closed issue #4901: proxool pool , jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #4901: proxool pool ,jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter
URL: https://github.com/apache/incubator-shardingsphere/issues/4901
 
 
   

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


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] kimmking commented on issue #4901: proxool pool , jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #4901: proxool pool ,jdbc yaml can't run proxy.ProxoolDataSource cannot be cast to YamlDataSourceParameter
URL: https://github.com/apache/incubator-shardingsphere/issues/4901#issuecomment-602594121
 
 
   just remove " !!org.logicalcobwebs.proxool.ProxoolDataSource"

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


With regards,
Apache Git Services