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

Exception tag is missing when Camel Java DSL is converted into XML using dumpRouteAsXml() operation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.22.4, 3.0.0-M1
    • Fix Version/s: 2.24.0, 3.0.0-M3, 2.23.3, 3.0.0
    • Component/s: came-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Exception tag is missing when Camel Java DSL is converted into XML using dumpRouteAsXml() operation

      #Java DSL route

      public void configure() {
      	onException(Exception.class).log("${exception.stacktrace}").logStackTrace(true)
      			.handled(true);
      
      	from("timer://foo?fixedRate=true&period=10000&repeatCount=101").routeId("test")
      			.log("Hello World");
      }
      

      #XML converted by dumpRouteAsXml() operation(<exception>java.lang.Exception</exception> tag is missing)

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <route xmlns="http://camel.apache.org/schema/spring" customId="true" id="test">
          <from uri="timer://foo?fixedRate=true&amp;period=10000&amp;repeatCount=101"/>
          <onException id="onException1">
              <redeliveryPolicy logStackTrace="true"/>
              <log id="log1" message="${exception.stacktrace}"/>
          </onException>
          <log id="log2" message="Hello World"/>
      </route>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                shailendra14k Shailendra Kumar singh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m