cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Zagorulko (Created) (JIRA)" <>
Subject [jira] [Created] (CXF-3934) JaxWsClientProxy clears stacktrace of custom exception
Date Fri, 25 Nov 2011 08:16:39 GMT
JaxWsClientProxy clears stacktrace of custom exception

                 Key: CXF-3934
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.3.1
         Environment: AS Jboss 5.1, jbossws-cxf-3.4.1, cxf-2.3.1
            Reporter: Anton Zagorulko

Web service method throws custom exception annotated by @WebFault, cxf endpoint configuration
has faultStackTraceEnabled=true and exceptionMessageCauseEnabled=true properties. On client
side we have response with filled stacktrace element in fault/detail then through InFaultInterceptors
new instance of our custom exception is created and filled with stacktrace from response.
Our custom exception with stacktrace is intercepted in JaxWsClientProxy when its stacktrace
is filled again using fillInStackTrace() as a result we have empty stacktrace.

line 120 ..try {
            if (isAsync) {
                result = invokeAsync(method, oi, params);
            } else {
                result = invokeSync(method, oi, params);
        } catch (WebServiceException wex) {
            throw wex.fillInStackTrace();
        } catch (Exception ex) {
            for (Class<?> excls : method.getExceptionTypes()) {
                if (excls.isInstance(ex)) {
                    throw ex.fillInStackTrace();

I doubt if this behavior according to custom exceptions is correct.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message