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

CXFRS "skipFaultLogging" attribute doesn't work in Spring

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2
    • Camel
    • None
    • % %
    • 6.3 Sprint 1 (4-Jan->29-Jan)

      if I create a camel-cxf rsClient endpoint in Spring:

      <camelcxf:rsClient id="rsClient" address="http://localhost:9081/CxfRsService/rest"
          serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"
          skipFaultLogging="true" />
      

      I still have full Fault stack trace printed out in Fuse log file when error occurs.

      The only way to get it to work is to add it as a parameter "?skipFaultLogging=true" on the endpoint uri like:

      <camel:camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
          <camel:route>
              <camel:from uri="cxfrs://bean://rsServer"/>
              <camel:doTry>
                  <camel:to uri="cxfrs://bean://rsClient?skipFaultLogging=true"/>
                  <camel:doCatch>
                      <camel:exception>java.lang.Exception</camel:exception>
                      <camel:transform>
                          <camel:simple>Error: ${exception.message}</camel:simple>
                      </camel:transform>
                      <camel:log message="${body}" loggingLevel="ERROR" logName="TestLog"/>
                  </camel:doCatch>
              </camel:doTry>
          </camel:route>
        </camel:camelContext>
      

      Then the error stack trace will be suppressed in the log file.

            gertv_jira Gert Vanthienen (Inactive)
            rhn-support-qluo Joe Luo
            Viliam Kasala Viliam Kasala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: