Unfortunately "handleFault(Message message)" is never called.
The only call that I can get is "handleMessage(Message message)" but it has
no Fault details.
Here is a log:
[cut]
13:55:47: 2209109 DEBUG
org.apache.cxf.transport.http.AbstractHTTPDestination - Create a new message
for processing
13:55:47: 2209117 DEBUG org.apache.cxf.transport.http.Headers - Request
Headers:
{Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8],
accept-encoding=[gzip, deflate], Accept-Language=[en-US,en;q=0.5],
Authorization=[Basic ################], Cache-Control=[no-cache],
connection=[keep-alive], Content-Type=[null],
Cookie=[ADMINCONSOLESESSION=3MrvQGHTYsvMS2xkpn58yLgLmQMw1gDCnp6gTVVvlnbWF119zzSh!1771304357;
JSESSIONID=TDTlQGTDvclsFnmF556ky11z2nWVHQQW1FchzYXDTbWrctjpd1Yy!333721281],
DNT=[1], Host=[localhost:7001], Pragma=[no-cache], User-Agent=[Mozilla/5.0
(Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0]}
13:55:47: 2209141 DEBUG org.apache.cxf.configuration.spring.ConfigurerImpl -
Could not determine bean name for instance of class
org.apache.cxf.phase.PhaseManagerImpl.
13:55:47: 2209165 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.interceptor.LoggingInInterceptor@3413e584 to
phase receive
13:55:47: 2209166 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor com.JAXRSInFaultInterceptorImpl@2bec9f33 to phase receive
13:55:47: 2209166 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@3bc7e3cc to phase
receive
13:55:47: 2209166 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.interceptor.ServiceInvokerInterceptor@403c84bd to
phase invoke
13:55:47: 2209166 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.interceptor.OutgoingChainInterceptor@452eb53d to
phase post-invoke
13:55:47: 2209166 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.interceptor.OneWayProcessorInterceptor@7d7cdb46
to phase pre-logical
13:55:47: 2209166 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor@10201107 to
phase unmarshal
13:55:47: 2209167 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor
org.apache.cxf.transport.https.CertConstraintsInterceptor@ecf5353 to phase
pre-stream
13:55:47: 2209168 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Chain
org.apache.cxf.phase.PhaseInterceptorChain@153f2442 was created. Current
flow:
receive [LoggingInInterceptor, PolicyInInterceptor,
JAXRSInFaultInterceptorImpl]
pre-stream [CertConstraintsInterceptor]
unmarshal [JAXRSInInterceptor]
pre-logical [OneWayProcessorInterceptor]
invoke [ServiceInvokerInterceptor]
post-invoke [OutgoingChainInterceptor]
13:55:47: 2209168 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingInInterceptor@3413e584
13:55:47: 2209174 INFO org.apache.cxf.interceptor.LoggingInInterceptor -
Inbound Message
----------------------------
ID: 1
Address: http://localhost:7001/services/ws/request/get_request?id=123EDR
Http-Method: GET
Content-Type:
Headers:
{Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8],
accept-encoding=[gzip, deflate], Accept-Language=[en-US,en;q=0.5],
Authorization=[Basic ################], Cache-Control=[no-cache],
connection=[keep-alive], Content-Type=[null],
Cookie=[ADMINCONSOLESESSION=3MrvQGHTYsvMS2xkpn58yLgLmQMw1gDCnp6gTVVvlnbWF119zzSh!1771304357;
JSESSIONID=TDTlQGTDvclsFnmF556ky11z2nWVHQQW1FchzYXDTbWrctjpd1Yy!333721281],
DNT=[1], Host=[localhost:7001], Pragma=[no-cache], User-Agent=[Mozilla/5.0
(Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0]}
--------------------------------------
13:55:47: 2209174 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyInInterceptor@3bc7e3cc
13:55:47: 2209212 DEBUG org.apache.cxf.configuration.spring.ConfigurerImpl -
Could not determine bean name for instance of class
org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
13:55:47: 2209213 DEBUG org.apache.cxf.configuration.spring.ConfigurerImpl -
Could not determine bean name for instance of class
org.apache.cxf.ws.policy.PolicyBuilderImpl.
13:55:47: 2209213 DEBUG org.apache.cxf.configuration.spring.ConfigurerImpl -
Could not determine bean name for instance of class
org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider.
13:55:47: 2209232 DEBUG org.apache.cxf.configuration.spring.ConfigurerImpl -
Could not determine bean name for instance of class
org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.
13:55:47: 2209236 DEBUG org.apache.cxf.configuration.spring.ConfigurerImpl -
Could not determine bean name for instance of class
org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl.
13:55:47: 2209236 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
com.JAXRSInFaultInterceptorImpl@2bec9f33
Breakpoint reached at
com.JAXRSAbstractFaultInterceptor.handleMessage(JAXRSAbstractFaultInterceptor.java:133)
13:55:47: 2209238 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.transport.https.CertConstraintsInterceptor@ecf5353
13:55:47: 2209239 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor@10201107
13:55:47: 2209249 DEBUG org.apache.cxf.jaxrs.utils.JAXRSUtils - Trying to
select a resource class, request path : /request/get_request
13:55:47: 2209250 DEBUG org.apache.cxf.jaxrs.utils.JAXRSUtils - Resource
class com.ServiceEndpointImpl may get selected, request path :
com.ServiceEndpointImpl, resource class @Path : /request/get_request
13:55:47: 2209250 DEBUG org.apache.cxf.jaxrs.utils.JAXRSUtils - Resource
class com.ServiceEndpointImpl has been selected, request path :
com.ServiceEndpointImpl, resource class @Path : /request/get_request
13:55:47: 2209250 DEBUG org.apache.cxf.jaxrs.utils.JAXRSUtils - Trying to
select a resource operation on the resource class com.ServiceEndpointImpl
13:55:47: 2209254 DEBUG org.apache.cxf.jaxrs.utils.JAXRSUtils - Resource
operation getRequest on the resource class com.ServiceEndpointImpl has been
selected
13:55:47: 2209255 DEBUG org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor
- Request path is: /request/get_request
13:55:47: 2209255 DEBUG org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor
- Request HTTP method is: GET
13:55:47: 2209255 DEBUG org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor
- Request contentType is: */*
13:55:47: 2209255 DEBUG org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor
- Accept contentType is:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
13:55:47: 2209255 DEBUG org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor
- Found operation: getRequest
13:55:53: 2215820 WARN
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper -
WebApplicationException has been caught : Unparseable date: "123EDR"
13:55:53: 2215820 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.OneWayProcessorInterceptor@7d7cdb46
13:55:53: 2215820 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.ServiceInvokerInterceptor@403c84bd
13:55:53: 2215824 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.OutgoingChainInterceptor@452eb53d
13:55:53: 2215826 DEBUG org.apache.cxf.interceptor.OutgoingChainInterceptor
- Interceptors contributed by bus:
[org.apache.cxf.interceptor.LoggingOutInterceptor@2af426a0,
com.JAXRSOutFaultInterceptorImpl@313e868,
org.apache.cxf.ws.policy.PolicyOutInterceptor@fff056c]
13:55:53: 2215826 DEBUG org.apache.cxf.interceptor.OutgoingChainInterceptor
- Interceptors contributed by service: []
13:55:53: 2215826 DEBUG org.apache.cxf.interceptor.OutgoingChainInterceptor
- Interceptors contributed by endpoint:
[org.apache.cxf.interceptor.MessageSenderInterceptor@20b13914]
13:55:53: 2215826 DEBUG org.apache.cxf.interceptor.OutgoingChainInterceptor
- Interceptors contributed by binding:
[org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor@531a60d0]
13:55:53: 2215826 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.interceptor.LoggingOutInterceptor@2af426a0 to
phase pre-stream
13:55:53: 2215826 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor com.JAXRSOutFaultInterceptorImpl@313e868 to phase setup
13:55:53: 2215826 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.ws.policy.PolicyOutInterceptor@fff056c to phase
setup
13:55:53: 2215826 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@20b13914 to
phase prepare-send
13:55:53: 2215826 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor@531a60d0 to
phase marshal
Breakpoint reached at
com.JAXRSAbstractFaultInterceptor.handleMessage(JAXRSAbstractFaultInterceptor.java:133)
13:56:00: 2222524 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Chain
org.apache.cxf.phase.PhaseInterceptorChain@60dcc3d7 was created. Current
flow:
setup [PolicyOutInterceptor, JAXRSOutFaultInterceptorImpl]
prepare-send [MessageSenderInterceptor]
pre-stream [LoggingOutInterceptor]
marshal [JAXRSOutInterceptor]
13:56:00: 2222525 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyOutInterceptor@fff056c
13:56:00: 2222525 DEBUG org.apache.cxf.ws.policy.PolicyOutInterceptor - No
binding operation info.
13:56:00: 2222525 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
com.JAXRSOutFaultInterceptorImpl@313e868
13:56:00: 2222527 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor@20b13914
13:56:00: 2222528 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Adding
interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@4ff7fd0
to phase prepare-send-ending
13:56:00: 2222528 DEBUG org.apache.cxf.phase.PhaseInterceptorChain - Chain
org.apache.cxf.phase.PhaseInterceptorChain@60dcc3d7 was modified. Current
flow:
setup [PolicyOutInterceptor, JAXRSOutFaultInterceptorImpl]
prepare-send [MessageSenderInterceptor]
pre-stream [LoggingOutInterceptor]
marshal [JAXRSOutInterceptor]
prepare-send-ending [MessageSenderEndingInterceptor]
13:56:00: 2222528 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingOutInterceptor@2af426a0
13:56:00: 2222530 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor@531a60d0
13:56:00: 2222530 DEBUG org.apache.cxf.phase.PhaseInterceptorChain -
Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@4ff7fd0
13:56:00: 2222530 INFO org.apache.cxf.interceptor.LoggingOutInterceptor -
Outbound Message
---------------------------
ID: 1
Response-Code: 500
Content-Type: text/xml
Headers: {Date=[Mon, 10 Dec 2012 18:56:00 GMT], Content-Length=[0]}
--------------------------------------
[/cut]
[configuration]
[bus]
<cxf:bus>
<cxf:inInterceptors>
<ref bean="logInbound"/>
<ref bean="faultInInterceptor"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="logOutbound"/>
</cxf:outInterceptors>
<ref bean="faultOutInterceptor"/>
</cxf:bus>
[/bus]
[server]
<jaxrs:server id="MyServices" address="/endpoint">
<jaxrs:serviceBeans>
<ref bean="myServiceBean" />
</jaxrs:serviceBeans>
</jaxrs:server>
[/server]
[/configuration]
--
View this message in context:
http://cxf.547215.n5.nabble.com/Intercepting-exceptions-on-the-server-side-tp5719964p5719995.html
Sent from the cxf-user mailing list archive at Nabble.com.