CXFRS "skipFaultLogging" attribute doesn't work in Spring

Solution In Progress - Updated -

Issue

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.

Environment

  • JBoss Fuse
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content