What Camel version do you use? Try with a newer version. And try without transacted just to see if it can find it then
On Wed, Sep 18, 2013 at 10:47 PM, javamonkey79 <[email protected]> wrote: > I have the following: > > <onException> > <exception>java.lang.Throwable</exception> > <redeliveryPolicy redeliveryDelay="1000" > maximumRedeliveries="1" /> > <bean ref="exceptionToAlertConverter" /> > <to uri="direct:alerter" /> > </onException> > <route id="alerterRoute"> > <from uri="direct:alerter" /> > <transacted > ref="propagationNotSupportedTransactionPolicy" /> > <to id="alerter" uri="billingBroker://Alerter" /> > </route> > > And in my unit test, I have: > > context.getRouteDefinition( "alerterRoute" ).adviceWith( > context, new > AdviceWithRouteBuilder() { > @Override > public void configure() throws Exception { > weaveById( "alerter" ).replace().to( > ALERTER_QUEUE_URI ); > } > } ); > > I am trying to replace the "alerter" id b\c it is pointing at ActiveMQ, > which I don't need to test here. > > But, I keep getting: > > java.lang.IllegalArgumentException: There are no outputs which matches: > alerter in the route: Route(alerterRoute)[[From[direct:alerter]] -> > [OnException[null -> [Bean[ref:exceptionToAlertConverter], > To[direct:alerter]]], > Transacted[ref:propagationNotSupportedTransactionPolicy]]] > at > org.apache.camel.builder.AdviceWithTasks$1.task(AdviceWithTasks.java:160) > > When I print out the route definition, I get this: > Route(alerterRoute)[[From[direct:alerter]] -> [OnException[null -> > [Bean[ref:exceptionToAlertConverter], To[direct:alerter]]], > Transacted[ref:propagationNotSupportedTransactionPolicy]]] > > The alerter "to" is gone?!? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/missing-output-on-route-definition-tp5739784.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
