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

Fail early and show meaningful log for invalid endpoint URI in Blueprint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.2
    • 2.18.4, 2.19.0
    • camel-blueprint
    • None

    Description

      An extra white space in blueprint xml (e.g. <to uri=" sql:select * from eng"/>) throws

      12:09:46,514 | INFO  | FelixStartLevel  | BlueprintContainerImpl           | 23 - org.apache.aries.blueprint.core - 1.4.4 | Bundle camel.xml/0.0.0 is waiting for dependencies [(&(component= sql)(objectClass=org.apache.camel.spi.ComponentResolver))]
      

      while spring throws relevant exception

      caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:  sql:select * from eng due to: Illegal character in scheme name at index 0: %20sql:select%20*%20from%20eng
      

      Attachments

        Issue Links

          Activity

            People

              tadayosi Tadayoshi Sato
              tadayosi Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: