On Tue, Nov 27, 2012 at 3:44 PM, lleclerc <llecl...@aim-rg.com> wrote: > Thanks for the answer ! I missed that box ! > I got a second problem now.. > > My application fail in the testMethod() onthis line : > context.getRouteDefinitions().get(0).adviceWith(context, new > AdviceWithRouteBuilder() { > > I get this error : > org.apache.camel.FailedToCreateRouteException: Failed to create route route1 > at: >>> To[http4:google.com] <<< in route: > Route[[From[timer:myTimer?delay=1000&period=500]] -> [SetHea... because of > Failed to resolve endpoint: http4://google.com due to: null > > Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to > resolve endpoint: http4://google.com due to: null > > Debugging context, I can see that my context does have the routes > > Route[[From[timer:myTimer?delay=1000&period=500]] -> > [SetHeader[CamelHttpQuery, {...}], To[http4:google.com], To[seda:myQueue]]] > > context.getEndpoints() is empty. > > Am I still missing something ? >
It smells like there is a NPE exception buried somewhere. Do you got camel-http4 on the classpath ? > Thank you! > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Intercepting-message-for-testing-not-working-tp5723257p5723305.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen