Spring -XD Stream部署失败 [英] Spring -XD Stream deployment failure

查看:86
本文介绍了Spring -XD Stream部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署两个spring-XD流.流1和流2.这两个流都已在本地框(单节点)中很好地部署,但是当我尝试在更高环境(分布式节点)中部署它时,流2已被成功部署,但流1没有成功.

I am trying to deploy two spring-XD streams. Stream 1 and Stream 2. Both the streams are getting deployed fine in the local box (Single node) but when i try to deploy this in higher environment (distributed node) Stream 2 is getting deployed successfully but not stream 1.

这是流定义

流-名称测试定义"CustomSource |自定义处理器1 |自定义处理器2 |自定义处理器3> queue:TestQueue"

Stream --name test definition "CustomSource | Custom Processor 1 | Custom Processor 2 | Custom Processor 3 > queue:TestQueue"

以下是我在管理日志中看到的错误. 我相信这是从spring-xd框架抛出的,并且不确定如何克服这个问题.

Below is the error I am seeing in the admin logs. I believe this is thrown from the spring-xd framework and not sure how to overcome this.

DeploymentStatus {状态=失败,错误= org.springframework.beans.factory.BeanDefinitionStoreException:名称为'objectNameProperties'的无效bean定义为null:无法解析字符串值中的占位符'xd.module.sequence' "$ {xd.module.sequence}";嵌套异常为java.lang.IllegalArgumentException:无法解析字符串值"$ {xd.module.sequence}"中的占位符"xd.module.sequence" 在org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211) 在org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:222) 在org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)处 在org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:265)

DeploymentStatus{state=failed,error(s)=org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'objectNameProperties' defined in null: Could not resolve placeholder 'xd.module.sequence' in string value "${xd.module.sequence}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'xd.module.sequence' in string value "${xd.module.sequence}" at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:222) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:265)

推荐答案

该容器实例有些不对劲;该属性自1.1版以来一直存在.用来指示它是模块的哪个实例.

There's something awry with that container instance; that property has been around since version 1.1. It's used to indicate which instance of the module this is.

即使与count=0一起部署,也会将其设置为0.

Even if deployed with count=0, it gets set to 0.

哪个模块发生故障?您正在使用哪些部署属性?

Which module is failing? What deployment properties are you using?

您可能需要弹跳容器.

这篇关于Spring -XD Stream部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆