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
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.