启动job模块报错

Blade 未结 1 108
小白xxx
小白xxx 剑侠 2024-11-26 08:59

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

1. 单独启动的job模块

2. 报错:no server available!

3.咨询下,这个是不是要先部署PowerJob 服务器


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

希望能启动运用定时任务


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

4.1.0


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

2024-11-26 08:51:26.483  INFO 22016 --- [           main] t.p.worker.common.utils.WorkerNetUtils   : [WorkerNetUtils] close PingPongSocketServer successfully~

2024-11-26 08:51:26.709  WARN 22016 --- [           main] t.p.w.b.d.PowerJobServerDiscoveryService : [PowerJobWorker] assert appName by url(http://127.0.0.1:7700/server/assert?appName=job) failed, please check the server address.

2024-11-26 08:51:26.709 ERROR 22016 --- [           main] t.p.w.b.d.PowerJobServerDiscoveryService : [PowerJobWorker] no available server in [127.0.0.1:7700].

2024-11-26 08:51:26.711 ERROR 22016 --- [           main] tech.powerjob.worker.PowerJobWorker      : [PowerJobWorker] initialize PowerJobWorker failed, using 568.2 ms.


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)

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)



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

1条回答
提交回复