Error deploying more than one stream with a router 1.3.0

前端 未结 1 915
半阙折子戏
半阙折子戏 2021-01-23 07:56

I am encountering the following issue on the 1.3.0 release:

xd:>stream create test1 --definition \'http | router --script=\"file:/tmp/file1.groovy\"\' --deploy

t

1条回答
  •  不思量自难忘°
    2021-01-23 08:27

    It's a bug - please open a JIRA issue. JIRA Issue here.

    I haven't come up with a work-around (so far), aside from disabling JMX.

    For some reason, the main spring MBean exporter is trying to export the router; normally, the IntegrationMBeanExporter disables that (when present).

    EDIT

    Here's a work-around...

    Create this file and put it under xd/config as

    xd/config/META-INF/spring-xd/plugins/jmx/mbean-exporters.xml ...

    
    
    
        
    
        
    
        
        
            ${xd.group.name}
            ${xd.module.label}
            ${xd.module.type}
            ${xd.module.sequence}
        
    
        
            
            
        
    
    
    

    This replaces the standard file and makes the stream name part of the MBean domain so the MBean names are unique. The only difference to the standard file is the addition of the default-domain to the context mbean exporter.

    We still need to address the underlying issue as to why the normal exporter does not have that bean suppressed, but this should get you going.

    0 讨论(0)
提交回复
热议问题