Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.1
-
None
-
AS Jboss 5.1, jbossws-cxf-3.4.1, cxf-2.3.1
-
Unknown
Description
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)
else
{ result = invokeSync(method, oi, params); }} catch (WebServiceException wex)
{ throw wex.fillInStackTrace(); } catch (Exception ex) {
for (Class<?> excls : method.getExceptionTypes()) {
if (excls.isInstance(ex))
}
}
...
I doubt if this behavior according to custom exceptions is correct because I need this server stacktrace on client. Same code exists in cxf 2.5 too.