You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by COURTAULT Francois <fr...@thalesgroup.com> on 2020/02/14 17:15:06 UTC

Removing cxf fault

Hello everyone,

Do you  know how to disable the cxf fault in TomEE  ?
Sample below:
14-Feb-2020 17:49:57.425 WARNING [MyJmsResourceAdapter-worker- - 5] org.apache.cxf.phase.PhaseInterceptorChain.doDefault
Logging Interceptor for {http://www.apache.org/}WebClient has thrown exception, unwinding now

How to avoid this log message  ?

Best Regards.




RE: Removing cxf fault

Posted by COURTAULT Francois <fr...@thalesgroup.com>.
Hello,

Any feedback ?
FYI, I tried with this class

public class MyInterceptor extends AbstractPhaseInterceptor<Message> {
    public MyInterceptor() {
        super(Phase.PRE_LOGICAL);
    }

    public void handleMessage(final Message message) throws Fault {
        message.put(FaultListener.class.getName(), new NoOpFaultListener());
    }

    public void handleFault(final Message message) {
        // no-op
    }
}


and in  the  resource class: @OutInterceptors(classes = MyInterceptor.class)
It doesn't work :(

Best Regards.

From: COURTAULT Francois
Sent: vendredi 14 février 2020 18:15
To: users@tomee.apache.org
Subject: Removing cxf fault

Hello everyone,

Do you  know how to disable the cxf fault in TomEE  ?
Sample below:
14-Feb-2020 17:49:57.425 WARNING [MyJmsResourceAdapter-worker- - 5] org.apache.cxf.phase.PhaseInterceptorChain.doDefault
Logging Interceptor for {http://www.apache.org/}WebClient has thrown exception, unwinding now

How to avoid this log message  ?

Best Regards.