You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2018/11/13 04:46:10 UTC

[GitHub] shyabithd opened a new issue #212: Exposing Rest endpoint

shyabithd opened a new issue #212: Exposing Rest endpoint
URL: https://github.com/apache/camel-k/issues/212
 
 
   Description: 
   
   I tried to create a rest endpoint using camel-k however when DSL is deployed I got following error.
   Should Camel-k download dependent components?
   
   [2] Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[rest:get:/hello?routeId=route1]] -> [To[... because of Cannot find RestConsumerFactory in Registry or as a Component to use
   [2] 	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:147)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3949)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3856)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3642)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3494)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209)
   [2] 	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3253)
   [2] 	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3272)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3249)
   [2] 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
   [2] 	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3165)
   [2] 	at org.apache.camel.k.jvm.Runtime.doStart(Runtime.java:101)
   [2] 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
   [2] 	at org.apache.camel.main.MainSupport.run(MainSupport.java:170)
   [2] 	at org.apache.camel.k.jvm.Application.main(Application.java:65)
   [2] Caused by: java.lang.IllegalStateException: Cannot find RestConsumerFactory in Registry or as a Component to use
   [2] 	at org.apache.camel.component.rest.RestEndpoint.createConsumer(RestEndpoint.java:526)
   [2] 	at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:69)
   [2] 	at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:107)
   [2] 	at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:172)
   [2] 	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services