blade-job服务启动报错no server available!

Blade 未结 2 315
feibing
feibing 2024-08-26 14:34

一、该问题的重现步骤是什么?

1.     idea启动blade-job服务

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

期待结果:正常启动

实际看到:image.png

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

产品:bladex

版本:4.1.0

操作系统:Windows

四、请提供详细的错误堆栈信息,这很重要。

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initPowerJob' defined in class path resource [tech/powerjob/worker/autoconfigure/PowerJobAutoConfiguration.class]: no server available!

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:59)

at org.springblade.job.JobApplication.main(JobApplication.java:41)

Caused by: tech.powerjob.common.exception.PowerJobException: no server available!

at tech.powerjob.worker.background.discovery.PowerJobServerDiscoveryService.assertApp0(PowerJobServerDiscoveryService.java:115)

at tech.powerjob.worker.background.discovery.PowerJobServerDiscoveryService.assertApp(PowerJobServerDiscoveryService.java:67)

at tech.powerjob.worker.PowerJobWorker.init(PowerJobWorker.java:84)

at tech.powerjob.worker.PowerJobSpringWorker.afterPropertiesSet(PowerJobSpringWorker.java:40)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)

... 16 common frames omitted

五、若有更多详细信息,请在下面提供。

2条回答
提交回复