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

XML IO DSL do not parse route configuration with XML namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.3
    • 3.18.6, 3.20.3, 3.21.0, 4.0-M2, 4.0.0
    • None
    • None
    • Unknown

    Description

      XML IO DSL do not load routeConfiguration if it uses XML namespace like this:

      <routeConfiguration xmlns="http://camel.apache.org/schema/spring">
        <onException>
        <exception>java.lang.Exception</exception>
        <handled><constant>true</constant></handled>
        <log message="XML WARN: ${exception.message}"/>
        </onException>
      </routeConfiguration>
      

      A possible workaround is to explicitly remove the namespace, for instance like below:

      <routeConfiguration>
      ...
      </routeConfiguration>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tturek Tomas Turek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: