一、该问题的重现步骤是什么?
1.
2. 引入依赖 加上包扫描 就出现rule问题了
3.
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
4.3.0 boot
四、请提供详细的错误堆栈信息,这很重要。
2025-03-20 10:27:45.514 ERROR 32376 --- [ main] com.yomahub.liteflow.core.FlowExecutor : [aliOssRule] is not exist or [aliOssRule] is not registered, you need to define a node or chain with id [aliOssRule] and register it
EL: THEN(preOssRule,SWITCH(ossCacheRule).TO(ossReadRule,THEN(ossDataRule,SWITCH(ossBuildRule).TO(aliOssRule,amazonS3Rule,huaweiObsRule,minioRule,qiniuOssRule,tencentCosRule,localFileRule),ossTemplateRule).id("ossNewRule")),finallyOssRule);
^
com.yomahub.liteflow.exception.ELParseException: [aliOssRule] is not exist or [aliOssRule] is not registered, you need to define a node or chain with id [aliOssRule] and register it
EL: THEN(preOssRule,SWITCH(ossCacheRule).TO(ossReadRule,THEN(ossDataRule,SWITCH(ossBuildRule).TO(aliOssRule,amazonS3Rule,huaweiObsRule,minioRule,qiniuOssRule,tencentCosRule,localFileRule),ossTemplateRule).id("ossNewRule")),finallyOssRule);
^
at com.yomahub.liteflow.builder.el.LiteFlowChainELBuilder.setEL(LiteFlowChainELBuilder.java:161)
at com.yomahub.liteflow.parser.helper.ParserHelper.parseOneChainEl(ParserHelper.java:298)
at com.yomahub.liteflow.parser.el.XmlFlowELParser.parseOneChain(XmlFlowELParser.java:20)
at com.yomahub.liteflow.parser.helper.ParserHelper.parseChainDocument(ParserHelper.java:181)
at com.yomahub.liteflow.parser.base.BaseXmlFlowParser.parse(BaseXmlFlowParser.java:40)
at com.yomahub.liteflow.parser.el.LocalXmlFlowELParser.parseMain(LocalXmlFlowELParser.java:18)
at com.yomahub.liteflow.core.FlowExecutor.init(FlowExecutor.java:165)
at com.yomahub.liteflow.springboot.LiteflowExecutorInit.afterPropertiesSet(LiteflowExecutorInit.java:22)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802)
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:971)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625)
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.Application.main(Application.java:45)
2025-03-20 10:27:45.516 WARN 32376 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 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: [aliOssRule] is not exist or [aliOssRule] is not registered, you need to define a node or chain with id [aliOssRule] and register it
EL: THEN(preOssRule,SWITCH(ossCacheRule).TO(ossReadRule,THEN(ossDataRule,SWITCH(ossBuildRule).TO(aliOssRule,amazonS3Rule,huaweiObsRule,minioRule,qiniuOssRule,tencentCosRule,localFileRule),ossTemplateRule).id("ossNewRule")),finallyOssRule);
^
2025-03-20 10:27:45.532 INFO 32376 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2025-03-20 10:27:45.540 INFO 32376 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2025-03-20 10:27:45.552 INFO 32376 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-03-20 10:27:45.567 ERROR 32376 --- [ 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: [aliOssRule] is not exist or [aliOssRule] is not registered, you need to define a node or chain with id [aliOssRule] and register it
EL: THEN(preOssRule,SWITCH(ossCacheRule).TO(ossReadRule,THEN(ossDataRule,SWITCH(ossBuildRule).TO(aliOssRule,amazonS3Rule,huaweiObsRule,minioRule,qiniuOssRule,tencentCosRule,localFileRule),ossTemplateRule).id("ossNewRule")),finallyOssRule);
^
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1806)
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:971)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:625)
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.Application.main(Application.java:45)
Caused by: com.yomahub.liteflow.exception.FlowExecutorNotInitException: init flow executor cause error for path [liteflow/*.el.xml],reason: [aliOssRule] is not exist or [aliOssRule] is not registered, you need to define a node or chain with id [aliOssRule] and register it
EL: THEN(preOssRule,SWITCH(ossCacheRule).TO(ossReadRule,THEN(ossDataRule,SWITCH(ossBuildRule).TO(aliOssRule,amazonS3Rule,huaweiObsRule,minioRule,qiniuOssRule,tencentCosRule,localFileRule),ossTemplateRule).id("ossNewRule")),finallyOssRule);
^
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:1853)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802)
... 16 common frames omitted
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端