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/06/06 07:46:36 UTC

[GitHub] [shardingsphere] StupidManYI opened a new issue, #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

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

   
   
     .   ____          _            __ _ _
    /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
   ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
     '  |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot ::       (v2.3.11.RELEASE)
   
   2022-06-06 15:43:43.007  WARN 10356 --- [           main] o.s.boot.StartupInfoLogger               : InetAddress.getLocalHost().getHostName() took 5002 milliseconds to respond. Please verify your network configuration (macOS machines may need to add entries to /etc/hosts).
   2022-06-06 15:43:48.021  INFO 10356 --- [           main] c.e.e.application.app.AppApplication     : Starting AppApplication on yichenkangdeMacBook-Air.local with PID 10356 (/Users/yichenkang/projects/company/echao-platform/application/app/target/classes started by yichenkang in /Users/yichenkang/projects/company/echao-platform)
   2022-06-06 15:43:48.022  INFO 10356 --- [           main] c.e.e.application.app.AppApplication     : The following profiles are active: dev,shardingsphere
   2022-06-06 15:43:48.914  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
   2022-06-06 15:43:48.915  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
   2022-06-06 15:43:48.930  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 12ms. Found 0 Elasticsearch repository interfaces.
   2022-06-06 15:43:48.933  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
   2022-06-06 15:43:48.933  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
   2022-06-06 15:43:48.936  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2ms. Found 0 Reactive Elasticsearch repository interfaces.
   2022-06-06 15:43:48.948  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
   2022-06-06 15:43:48.949  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
   2022-06-06 15:43:48.958  INFO 10356 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2ms. Found 0 Redis repository interfaces.
   2022-06-06 15:43:49.213  INFO 10356 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'stringToNoneShardingStrategyConfigurationConverter' of type [org.apache.shardingsphere.spring.boot.converter.StringToNoneShardingStrategyConfigurationConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2022-06-06 15:43:49.217  INFO 10356 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.shardingsphere-org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration' of type [org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2022-06-06 15:43:49.383  WARN 10356 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch
   2022-06-06 15:43:49.389  INFO 10356 --- [           main] ConditionEvaluationReportLoggingListener : 
   
   Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
   2022-06-06 15:43:49.437 ERROR 10356 --- [           main] o.s.boot.SpringApplication               : Application run failed
   
   org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1341) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1181) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:229) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:723) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) [spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) [spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247) [spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236) [spring-boot-2.3.11.RELEASE.jar:2.3.11.RELEASE]
   	at com.echao.echao.application.app.AppApplication.main(AppApplication.java:21) [classes/:na]
   Caused by: java.lang.IllegalArgumentException: argument type mismatch
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_332]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_332]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_332]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_332]
   	at org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection.setField(DataSourceReflection.java:141) ~[shardingsphere-infra-common-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection.lambda$setField$0(DataSourceReflection.java:120) ~[shardingsphere-infra-common-5.1.0.jar:5.1.0]
   	at java.util.Optional.ifPresent(Optional.java:159) ~[na:1.8.0_332]
   	at org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection.setField(DataSourceReflection.java:120) ~[shardingsphere-infra-common-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.infra.datasource.pool.creator.DataSourcePoolCreator.setConfiguredFields(DataSourcePoolCreator.java:86) ~[shardingsphere-infra-common-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.infra.datasource.pool.creator.DataSourcePoolCreator.create(DataSourcePoolCreator.java:68) ~[shardingsphere-infra-common-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.spring.boot.datasource.DataSourceMapSetter.getDataSource(DataSourceMapSetter.java:92) ~[shardingsphere-jdbc-spring-boot-starter-infra-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.spring.boot.datasource.DataSourceMapSetter.getDataSourceMap(DataSourceMapSetter.java:65) ~[shardingsphere-jdbc-spring-boot-starter-infra-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration.setEnvironment(ShardingSphereAutoConfiguration.java:122) ~[shardingsphere-jdbc-core-spring-boot-starter-5.1.0.jar:5.1.0]
   	at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:108) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:100) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:415) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1791) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
   	... 25 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-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] StupidManYI closed issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI closed issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch
URL: https://github.com/apache/shardingsphere/issues/18192


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147179371

   I found that error might related to 
   
       connectionInitSqls: SET NAMES utf8mb4  #让 druid 支持特殊字符
   
   when I remove this line , the application run successful


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147162969

   But when I Remove the more druid configuration ,the application run successful


-- 
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] linghengqian commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
linghengqian commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147168461

   Not formatting markdown is really abstract... Have a minimal replica of the demo? The logs you give include ElasticSearch, Redis, and Spring Data integrations that aren't related to them.💨


-- 
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] linghengqian commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
linghengqian commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147182272

   Alibaba druid does not have `maxTotal` and `maxWaitMillis` attributes, see https://github.com/alibaba/druid/wiki/DruidDataSource%E9%85%8D%E7%BD%AE%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8 . This has nothing to do with ShardingSphere.


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147159698

   when I add more druid  configuration  , the application will  report an error  (  'org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch
     at
   )
   
           #the more druid configuration
   
           minIdle: 2
           # 初始化连接数
           initialSize: 1
           # 最大连接数
           maxTotal: 5
           maxWaitMillis: 200s
           connectionInitSqls: SET NAMES utf8mb4  #让 druid 支持特殊字符x
   
   
   **my yaml config**
   
   
   
             spring:
               shardingsphere:
                 datasource:
                   #数据库名称(可以与数据库中的库名不一致)
                   names: ds0
                   ds0:
                     type: com.alibaba.druid.pool.DruidDataSource
                     driverClassName: com.mysql.cj.jdbc.Driver
                     url: jdbc:mysql://xxxx:8888/echao_basic1?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&useTimezone=true&tinyInt1isBit=false
                     username: root
                     password: "123456"
                     # 数据库连接池的最小连接数
                     #        minIdle: 2
                     #        # 初始化连接数
                     #        initialSize: 1
                     #        # 最大连接数
                     #        maxTotal: 5
                     #            maxWaitMillis: 200s
                     #        connectionInitSqls: SET NAMES utf8mb4  #让 druid 支持特殊字符
                 rules:
                   defaultDatabaseStrategy:
                     inline:
                       sharding-column: id
                       algorithm-expression: ds0
                     defaultKeyGenerateStrategy:
                       type: MyShardingKeyGenerator
                       column: id
             `


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147253787

   The final solution is change that line as follw :
   
   `connectProperties: {connectionInitSqls: SET NAMES utf8mb4}`


-- 
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] linghengqian commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
linghengqian commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147199391

   > The error happened when I added this line 
   > 
   > `connectionInitSqls: SET NAMES utf8mb4  #让 druid 支持特殊字符`
   
   - Use MySQL JDBC-driven properties to perform SQL for specific data sources, rather than through global properties of the JDBC pool, which most likely did not complete initialization at execution time, see https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-configuration-properties.html. 
   
   - If you need to execute this SQL at startup for all of ShardingSphere's data sources, you should use Spring's `ApplicationRunner` or `CommandLineRunner` to execute the corresponding SQL event, as does `javax.annotation.PostConstruct`. 
   
   - A more reasonable means of verification is to execute this SQL directly against the configured `ShardingSphere Proxy 5.1.1`. I get the impression that this SQL is not supported because not all databases can be changed this way.


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147205169

   thanks


-- 
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] linghengqian commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
linghengqian commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147657915

   > The final solution is change that line as follw :
   > 
   > `connectProperties: {connectionInitSqls: SET NAMES utf8mb4}`
   
   I'm curious about what `connectionInitSqls` needs is `array`, and why it's possible to pass in a `string`. I think you can open a new issue in Alibaba Druid, which doesn't conform to YAML 1.1 processing.


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147192957

   The error happened when I add this line 
   
   `connectionInitSqls: SET NAMES utf8mb4  #让 druid 支持特殊字符`
   
   this attributes is in the Alibaba druid properties.
   <img width="1063" alt="image" src="https://user-images.githubusercontent.com/50037510/172125500-d06159f5-1e88-4953-9d81-116115cf8b85.png">
   
   You can remove the other extraneous druid attributes , but add the config which mentioned above , then you can see this error  
   
   I use the mybatis-plus3 ss jdbc 5 druid 1.2.8
   
   


-- 
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] StupidManYI commented on issue #18192: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch

Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #18192:
URL: https://github.com/apache/shardingsphere/issues/18192#issuecomment-1147173447

   > 
   
   sorry,I've changed that .


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