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

Camel-Jbang reload exception

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.21.0
    • 3.21.0, 4.0-RC1, 4.0.0
    • camel-jbang
    • None
    • Unknown

    Description

      When I run the following route with camel-jbang:

      - route:
          id: route-1791
          from:
            uri: kamelet:mqtt5-source
            id: from-fac9
            parameters:
              topic: data
              brokerUrl: '{{configmap:mqtt-server/broker-uri}}'
              username: '{{secret:mqtt-connection/username}}'
              password: '{{secret:mqtt-connection/password}}'
              clientId: client1
            steps:
              - log:
                  message: ${body}
                  id: log-cfb7
      

      I have correct error message

      org.apache.camel.FailedToCreateRouteException: Failed to create route route-1791: Route(route-1791)[From[kamelet:mqtt5-source?brokerUrl={{conf... because of Failed to resolve endpoint: kamelet:mqtt5-source?brokerUrl={{configmap:mqtt-server/broker-uri}}&clientId=xxxxxx&password=xxxxxx&topic=data&username=xxxxxx due to: Operation: [get]  for kind: [ConfigMap]  with name: [mqtt-server]  in namespace: [karavan]  failed.
      

      When I run camel-jbang with empty --source-dir and then upload and run the same YAML I have an unexplainable message:

      2023-05-15 09:05:24.041  WARN 54202 --- [ntloop-thread-0] support.RouteOnDemandReloadStrategy : Error reloading routes due Failed to create route route-1791: Route(route-1791)[From[kamelet:mqtt5-source?brokerUrl={{conf... because of Failed to resolve endpoint: kamelet:mqtt5-source?brokerUrl={{configmap:mqtt-server/broker-uri}}&clientId=xxxxxx&password=xxxxxx&topic=data&username=xxxxxx due to: No httpclient implementations found on the context classloader, please ensure your classpath includes an implementation jar. This exception is ignored.
      org.apache.camel.FailedToCreateRouteException: Failed to create route route-1791: Route(route-1791)[From[kamelet:mqtt5-source?brokerUrl={{conf... because of Failed to resolve endpoint: kamelet:mqtt5-source?brokerUrl={{configmap:mqtt-server/broker-uri}}&clientId=xxxxxx&password=xxxxxx&topic=data&username=xxxxxx due to: No httpclient implementations found on the context classloader, please ensure your classpath includes an implementation jar
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            marat.gubaidullin@gmail.com Marat Gubaidullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment