I got the exception just like this: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[direct:in?concurrentConsumers=2]] -> [Be... because of Failed to resolve endpoint: direct://in?concurrentConsumers=2 due to: Failed to resolve endpoint: direct://in?concurrentConsumers=2 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{concurrentConsumers=2}] at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:188) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:821) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2563) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2286) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2146) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2114) at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:174) at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:117) at org.apache.camel.processor.BeanRouteTest.setUp(BeanRouteTest.java:61) at junit.framework.TestCase.runBare(TestCase.java:139) at org.apache.camel.TestSupport.runBare(TestSupport.java:58) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: direct://in?concurrentConsumers=2 due to: Failed to resolve endpoint: direct://in?concurrentConsumers=2 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{concurrentConsumers=2}] at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:563) at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79) at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:198) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113) at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:67) at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:89) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:993) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:183) ... 24 more Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: direct://in?concurrentConsumers=2 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{concurrentConsumers=2}] at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:182) at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:127) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:543) ... 32 more
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On January 10, 2015 at 3:27:34 PM, Claus Ibsen (claus.ib...@gmail.com) wrote: > Hi > > Can you double check the logs as Camel should report invalid options. > > On Fri, Jan 9, 2015 at 3:14 PM, Chris Melikian wrote: > > Hi, > > > > I'm running 2.14.0 and I had a route which I'd changed from the seda to > > direct endpoint. I left a "?concurrentConsumers=2" on the URI using the Java > > DSL. > > > > When I started camel the application would start but would shut down again > > immediately. It took me a while to realise that there was a parameter on the > > URI which was not valid for the direct component. > > > > Camel didn't report an error in the logs at all but just failed silently. > > Would be good to throw an exception or add some sort of message to highlight > > the issue. > > > > To recreate, use:- > > > > @Override > > public void configure() throws Exception { > > from("direct:willFail?concurrentConsumers=2") > > .to("mock:wontReachHere"); > > } > > > > Cheers, Chris. > > > > > > > > > > > > -- > > View this message in context: > > http://camel.465427.n5.nabble.com/feature-request-Reporting-startup-failure-tp5761531.html > > > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ >