Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10599

Exception tag is missing when Camel Java DSL is converted into XML using Hawtio.

XMLWordPrintable

    • % %
    • Fuse 7.4 Sprint 45 - Dev #1

      Exception tag is missing when Camel Java DSL is converted into XML using Hawtio.

      #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 Hawtio(exception class tag is missing)

      <route xmlns="http://camel.apache.org/schema/spring" id="test">
              <from uri="timer://foo?fixedRate=true&amp;period=10000&amp;repeatCount=101"/>
              <onException>
                  <redeliveryPolicy logStackTrace="true"/>
                  <log message="${exception.stacktrace}"/>
              </onException>
              <log message="Hello World"/>
          </route>
      

      #java.lang.Exception tag is missing from the XML

      <exception>java.lang.Exception</exception>
      

        1. Hawtio_Camel.png
          99 kB
          Shailendra Singh

              acosenti Andrea Cosentino
              rhn-support-shsingh Shailendra Singh
              Tomas Veskrna Tomas Veskrna
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: