Hey all,
I have the following route defined with the Java DSL:
from("direct:localMemberLookup").routeId("localMemberLookup")
.process(new MemberLookupToSqlParametersProcessor()).id("sqlParams")
.recipientList(simple("sql:{{sql.memberLookup}}")).delimiter("false")
.to("log:output")
.process(new MemberLookupProcessor())
// do more processing
.to("log:output");
I'm testing it with a test that looks as follows:
@EndpointInject(uri = "mock:lookupHeaders")
MockEndpoint lookupHeaders;
@EndpointInject(uri = "mock:searchResult")
MockEndpoint searchResult;
@EndpointInject(uri = "mock:lookupResult")
MockEndpoint lookupResult;
@Autowired
CamelContext camelContext;
@Before
public void before() throws Exception {
ModelCamelContext context = (ModelCamelContext) camelContext;
context.setTracing(true);
RouteDefinition searchRoute =
context.getRouteDefinition("memberSearchRequest");
searchRoute.to(searchResult);
RouteDefinition lookupRoute =
context.getRouteDefinition("localMemberLookup");
lookupRoute.adviceWith(context, new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
weaveById("sqlParams").after().to(lookupHeaders);
}
});
lookupRoute.to(lookupResult);
context.start();
}
With Camel 2.13.1, this works fine. However, with 2.14-SNAPSHOT, I get the
following error:
java.lang.IllegalArgumentException: There are no outputs which matches:
sqlParams in the route
Any ideas?
Thanks,
Matt