Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15533

Camel-Slack: Improve the error messages

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.0
    • Component/s: camel-slack
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      [3] Exception in thread "main" org.apache.camel.FailedToStartRouteException: Failed to start route route2 because of null
      [3]     at org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:125)
      [3]     at org.apache.camel.impl.engine.InternalRouteStartupManager.doWarmUpRoutes(InternalRouteStartupManager.java:263)
      [3]     at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:156)
      [3]     at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:114)
      [3]     at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2809)
      [3]     at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2657)
      [3]     at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2620)
      [3]     at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [3]     at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2452)
      [3]     at org.apache.camel.k.main.ApplicationRuntime$MainAdapter.doStart(ApplicationRuntime.java:208)
      [3]     at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      [3]     at org.apache.camel.main.MainSupport.run(MainSupport.java:60)
      [3]     at org.apache.camel.k.main.ApplicationRuntime.run(ApplicationRuntime.java:72)
      [3]     at org.apache.camel.k.main.Application.main(Application.java:42)
      [3] Caused by: java.lang.NullPointerException
      [3]     at org.apache.camel.component.slack.SlackConsumer.getChannelId(SlackConsumer.java:137)
      [3]     at org.apache.camel.component.slack.SlackConsumer.<init>(SlackConsumer.java:54)
      [3]     at org.apache.camel.component.slack.SlackEndpoint.createConsumer(SlackEndpoint.java:84)
      [3]     at org.apache.camel.impl.engine.DefaultRoute.addServices(DefaultRoute.java:560)
      [3]     at org.apache.camel.impl.engine.DefaultRoute.onStartingServices(DefaultRoute.java:166)
      [3]     at org.apache.camel.impl.engine.RouteService.doWarmUp(RouteService.java:153)
      [3]     at org.apache.camel.impl.engine.RouteService.warmUp(RouteService.java:123)
      [3]     ... 13 more
      

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              acosentino Andrea Cosentino
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: