tianqikai opened a new issue, #20152:
URL: https://github.com/apache/shardingsphere/issues/20152
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'shardingSphereDataSource' defined in class path resource
[org/apache/shardingsphere/spring/boot/ShardingSphereAutoConfiguration.class]:
Initialization of bean failed; nested exception is
org.springframework.aop.framework.AopConfigException: Could not generate CGLIB
subclass of class
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource:
Common causes of this problem include using a final class or a non-visible
class; nested exception is java.lang.IllegalArgumentException: Cannot subclass
final class
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:603)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at
com.wocloud.report.WocloudServiceReportApplication.main(WocloudServiceReportApplication.java:20)
[classes/:na]
Caused by: org.springframework.aop.framework.AopConfigException: Could not
generate CGLIB subclass of class
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource:
Common causes of this problem include using a final class or a non-visible
class; nested exception is java.lang.IllegalArgumentException: Cannot subclass
final class
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource
at
org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:208)
~[spring-aop-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
~[spring-aop-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:471)
~[spring-aop-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:350)
~[spring-aop-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:299)
~[spring-aop-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:431)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1807)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
... 15 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:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]