org.apache.camel.spring.boot.CamelSpringBootInitializationException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[olingo2://read/Products] <<< in route: Route(route1)[[From[direct:olingo_start]] -> [To[olingo2://r... because of Failed to resolve endpoint: olingo2://read/Products due to: serviceUri

Stack Overflow | mariob | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Camel Olingo2 route and remote URIs

    Stack Overflow | 7 months ago | mariob
    org.apache.camel.spring.boot.CamelSpringBootInitializationException: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[olingo2://read/Products] <<< in route: Route(route1)[[From[direct:olingo_start]] -> [To[olingo2://r... because of Failed to resolve endpoint: olingo2://read/Products due to: serviceUri

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      serviceUri

      at org.apache.camel.component.olingo2.api.impl.Olingo2AppImpl.setServiceUri()
    2. Camel :: Olingo2 Component API
      Olingo2AppImpl.<init>
      1. org.apache.camel.component.olingo2.api.impl.Olingo2AppImpl.setServiceUri(Olingo2AppImpl.java:148)[camel-olingo2-api-2.17.1.jar:2.17.1]
      2. org.apache.camel.component.olingo2.api.impl.Olingo2AppImpl.<init>(Olingo2AppImpl.java:134)[camel-olingo2-api-2.17.1.jar:2.17.1]
      2 frames
    3. Camel :: Olingo2 Component
      Olingo2Endpoint.afterConfigureProperties
      1. org.apache.camel.component.olingo2.Olingo2Component.createOlingo2App(Olingo2Component.java:150)[camel-olingo2-2.17.1.jar:2.17.1]
      2. org.apache.camel.component.olingo2.Olingo2Component.createApiProxy(Olingo2Component.java:112)[camel-olingo2-2.17.1.jar:2.17.1]
      3. org.apache.camel.component.olingo2.Olingo2Endpoint.createProxy(Olingo2Endpoint.java:186)[camel-olingo2-2.17.1.jar:2.17.1]
      4. org.apache.camel.component.olingo2.Olingo2Endpoint.afterConfigureProperties(Olingo2Endpoint.java:120)[camel-olingo2-2.17.1.jar:2.17.1]
      4 frames
    4. Camel :: Core
      AbstractApiEndpoint.configureProperties
      1. org.apache.camel.util.component.AbstractApiEndpoint.configureProperties(AbstractApiEndpoint.java:114)[camel-core-2.17.1.jar:2.17.1]
      1 frame
    5. Camel :: Olingo2 Component
      Olingo2Component.createEndpoint
      1. org.apache.camel.component.olingo2.Olingo2Endpoint.configureProperties(Olingo2Endpoint.java:110)[camel-olingo2-2.17.1.jar:2.17.1]
      2. org.apache.camel.component.olingo2.Olingo2Component.createEndpoint(Olingo2Component.java:81)[camel-olingo2-2.17.1.jar:2.17.1]
      2 frames
    6. Camel :: Core
      DefaultCamelContext.start
      1. org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:114)[camel-core-2.17.1.jar:2.17.1]
      2. org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:568)[camel-core-2.17.1.jar:2.17.1]
      3. org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)[camel-core-2.17.1.jar:2.17.1]
      4. org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211)[camel-core-2.17.1.jar:2.17.1]
      5. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)[camel-core-2.17.1.jar:2.17.1]
      6. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)[camel-core-2.17.1.jar:2.17.1]
      7. org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)[camel-core-2.17.1.jar:2.17.1]
      8. org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)[camel-core-2.17.1.jar:2.17.1]
      9. org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534)[camel-core-2.17.1.jar:2.17.1]
      10. org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495)[camel-core-2.17.1.jar:2.17.1]
      11. org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)[camel-core-2.17.1.jar:2.17.1]
      12. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)[camel-core-2.17.1.jar:2.17.1]
      13. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)[camel-core-2.17.1.jar:2.17.1]
      14. org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:974)[camel-core-2.17.1.jar:2.17.1]
      15. org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3295)[camel-core-2.17.1.jar:2.17.1]
      16. org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3018)[camel-core-2.17.1.jar:2.17.1]
      17. org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)[camel-core-2.17.1.jar:2.17.1]
      18. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2848)[camel-core-2.17.1.jar:2.17.1]
      19. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2844)[camel-core-2.17.1.jar:2.17.1]
      20. org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2867)[camel-core-2.17.1.jar:2.17.1]
      21. org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2844)[camel-core-2.17.1.jar:2.17.1]
      22. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[camel-core-2.17.1.jar:2.17.1]
      23. org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2813)[camel-core-2.17.1.jar:2.17.1]
      23 frames
    7. org.apache.camel
      RoutesCollector.onApplicationEvent
      1. org.apache.camel.spring.boot.RoutesCollector.maybeStart(RoutesCollector.java:141)[camel-spring-boot-2.17.1.jar:2.17.1]
      2. org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:116)[camel-spring-boot-2.17.1.jar:2.17.1]
      3. org.apache.camel.spring.boot.RoutesCollector.onApplicationEvent(RoutesCollector.java:41)[camel-spring-boot-2.17.1.jar:2.17.1]
      3 frames
    8. Spring Context
      AbstractApplicationContext.finishRefresh
      1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      3. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      4. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      5. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      5 frames
    9. Spring Boot
      EmbeddedWebApplicationContext.finishRefresh
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      1 frame
    10. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    11. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      6 frames
    12. com.verizon.wisegate
      Application.main
      1. com.verizon.wisegate.neo4j.livesync.Application.main(Application.java:21)[classes/:na]
      1 frame