[
https://issues.apache.org/jira/browse/CXF-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-1819.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1.4
2.0.10
Assignee: Daniel Kulp
> 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
> Assignee: Daniel Kulp
> Fix For: 2.0.10, 2.1.4
>
>
> 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.