新增微服务后启动失败

Blade 未结 1 143
xiaomin
xiaomin 剑者 2024-09-25 18:49

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

1. 新增微服务后启动失败

2. Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-09-25 18:46:46.083 ERROR 26708 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liteflowExecutorInit' defined in class path resource [com/yomahub/liteflow/springboot/config/LiteflowMainAutoConfiguration.class]: init flow executor cause error for path [liteflow/*.el.xml],reason: [tenantDeptRule] is not exist or [tenantDeptRule] is not registered, you need to define a node or chain with id [tenantDeptRule] and register it
 EL: THEN(tenantRule,WHEN(tenantRoleRule,tenantRoleMenuRule,tenantDeptRule,tenantPostRule,tenantDictBizRule,tenantUserRule));
                                                            ^
    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.gr.GrApplication.main(GrApplication.java:41)
Caused by: com.yomahub.liteflow.exception.FlowExecutorNotInitException: init flow executor cause error for path [liteflow/*.el.xml],reason: [tenantDeptRule] is not exist or [tenantDeptRule] is not registered, you need to define a node or chain with id [tenantDeptRule] and register it
 EL: THEN(tenantRule,WHEN(tenantRoleRule,tenantRoleMenuRule,tenantDeptRule,tenantPostRule,tenantDictBizRule,tenantUserRule));
                                                            ^
    at com.yomahub.liteflow.core.FlowExecutor.init(FlowExecutor.java:184)
    at com.yomahub.liteflow.springboot.LiteflowExecutorInit.afterPropertiesSet(LiteflowExecutorInit.java:22)
    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


Process finished with exit code 1

3.


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


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

BladeX 4.1

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


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

图片.png

1条回答
  • 2024-09-25 20:40

    看下pom.xml,把liteflow的依赖删掉

    作者追问:2024-09-26 09:04

    注释后依旧无法启动

    0 讨论(0)
提交回复