cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akitoshi Yoshida (JIRA)" <>
Subject [jira] [Commented] (CXF-6127) Check entire cause chain for SOAPFaultException
Date Wed, 03 Dec 2014 16:04:12 GMT


Akitoshi Yoshida commented on CXF-6127:

Does the statement in that section imply the cause to be recursively inspected?
Doesn't it talk only about the exception itself or its cause, no?

Besides, simply traversing the cause chain isn't a good thing as you may hit an infinite loop
on a self-referencing exception.

> Check entire cause chain for SOAPFaultException
> -----------------------------------------------
>                 Key: CXF-6127
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>            Reporter: Kyle Lape
> Section of JAX-WS 2.2 spec has a footnote that says:
> bq. If the exception is a SOAPFaultException or has a cause that is a SOAPFaultException.
> Currently CXF only checks if the thrown exception is of the exact type (i.e. not a subtype
of) {{SOAPFaultException}}.  We need to check all causes and may as well use {{instanceof}}
rather than {{ex.getClass().equals(SOAPFaultException.class)}} in {{WebFaultOutInterceptor}}.

This message was sent by Atlassian JIRA

View raw message