Spring -XD Stream deployment failure

回眸只為那壹抹淺笑 提交于 2019-12-31 03:54:12

问题


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.

Here is the Stream Definition

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

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{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:


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.

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

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

You may have to bounce the container.



来源:https://stackoverflow.com/questions/34439296/spring-xd-stream-deployment-failure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!