dragon-zhang edited a comment on issue #2860:
URL:
https://github.com/apache/incubator-shenyu/issues/2860#issuecomment-1034713267
Meet some trouble, when I trying to use springboot `1.5x` version (which
using `spring 4x`), application can't start up (not use the code I changed).
Below is the log:
```shell
Error starting ApplicationContext. To display the auto-configuration report
re-run your application with 'debug' enabled.
2022-02-10 17:44:58.346 ERROR 55481 --- [ main]
o.s.boot.SpringApplication : Application startup failed
org.springframework.context.ApplicationContextException: Unable to start
embedded container; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat':
Initialization of bean failed; nested exception is
java.lang.AbstractMethodError
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:138)
~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:536)
~[spring-context-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:123)
~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:666)
[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:353)
[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:300)
[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1082)
[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1071)
[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.apache.shenyu.examples.spring4x.ShenyuTestSpring4xApplication.main(ShenyuTestSpring4xApplication.java:35)
[classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat':
Initialization of bean failed; nested exception is
java.lang.AbstractMethodError
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1177)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1072)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:192)
~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:161)
~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:135)
~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE]
... 8 common frames omitted
Caused by: java.lang.AbstractMethodError: null
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1622)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]