File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes CXF Logging inbound\outbound messages problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "CXF Logging inbound\outbound messages problem." Watch "CXF Logging inbound\outbound messages problem." New topic

CXF Logging inbound\outbound messages problem.

Serkan Akti

Joined: Aug 14, 2012
Posts: 2

I've developed WSDL first web-services with CXF (Web Service Server) . My services works fine but when i configure it for inbound/outbound message logging i am getting error at the time of requesting.

For inbound/outbound logging i've added the lines at below in cxf-servlet.xml;


With this configuration i am getting exception when i call the service from soap client, Here is the Exception;

WARNING: Interceptor for has thrown exception, unwinding now
at org.apache.cxf.interceptor.AbstractLoggingInterceptor.getMessageLogger(
at org.apache.cxf.interceptor.LoggingInInterceptor.handleMessage(
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
at org.apache.cxf.transport.MultipleEndpointObserver.onMessage(
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
at org.apache.cxf.transport.servlet.ServletController.invoke(
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Abhijit Durge

Joined: Oct 31, 2012
Posts: 9
Hello Serkan,

The Nullpointer exception can occur due to following conditions.
a) Message object is null
b) Exchange Object is null
c) Endpoint Object is null

Please try the alternate way of providing configuration for logging


I agree. Here's the link:
subject: CXF Logging inbound\outbound messages problem.
It's not a secret anymore!