Make PhaseInterceptorChain.unwind() more defensive wrt handleFault() exceptions
-------------------------------------------------------------------------------
Key: CXF-1819
URL: https://issues.apache.org/jira/browse/CXF-1819
Project: CXF
Issue Type: Improvement
Components: Core
Affects Versions: 2.1.1
Reporter: Mike Quilleash
Currently the PhaseInterceptorChain.unwind() method looks like this (logging
omitted)
while (iterator.hasPrevious()) {
Interceptor currentInterceptor = iterator.previous();
currentInterceptor.handleFault(message);
}
It would be better to defend against an exception in handleFault() as currently
an exception thrown from a handleFault() stops the unwind.
New proposed code...
while (iterator.hasPrevious()) {
Interceptor currentInterceptor = iterator.previous();
try {
currentInterceptor.handleFault(message);
catch (Exception e) {
LOG.log( Level.ERROR, "Exception in handleFault on interceptor
" + currentInterceptor, e);
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.