willfenglover opened a new issue #2967:
URL: https://github.com/apache/incubator-shenyu/issues/2967


   ### Question
   
   I want to upgrade shenyu which using mysql as the data store from version 
2.4.0 to 2.4.2,but I ran into some problems,as the log shows. 
   
   and then I created a brand new database, it worked fine. so what should I 
do? Do I need to execute some SQL to upgrade?
   
   ```
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   2022-03-03 03:35:38 [main] ERROR org.springframework.boot.SpringApplication 
- Application run failed
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'selectorServiceImpl' defined in URL 
[jar:file:/opt/shenyu-admin/lib/shenyu-admin-2.4.2.jar!/org/apache/shenyu/admin/service/impl/SelectorServiceImpl.class]:
 Unsatisfied dependency expressed through constructor parameter 7; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'upstreamCheckService' defined in URL 
[jar:file:/opt/shenyu-admin/lib/shenyu-admin-2.4.2.jar!/org/apache/shenyu/admin/service/impl/UpstreamCheckService.class]:
 Bean instantiation via constructor failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.shenyu.admin.service.impl.UpstreamCheckService]: Constructor threw 
exception; nested exception is java.lang.NullPointerException
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798)
           at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
           at 
org.apache.shenyu.admin.ShenyuAdminBootstrap.main(ShenyuAdminBootstrap.java:36)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'upstreamCheckService' defined in URL 
[jar:file:/opt/shenyu-admin/lib/shenyu-admin-2.4.2.jar!/org/apache/shenyu/admin/service/impl/UpstreamCheckService.class]:
 Bean instantiation via constructor failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.shenyu.admin.service.impl.UpstreamCheckService]: Constructor threw 
exception; nested exception is java.lang.NullPointerException
           at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:314)
           at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:295)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
           at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1287)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1207)
           at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:885)
           at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789)
   ```


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


Reply via email to