Description
I think I have found the problem, considering the following code:
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/ServiceInvocationHandler.java
Around line 56-57, where it checks whether the arrived exception is
assignable from the method invoked:
if (type.isAssignableFrom(theCause.getClass()))
{ throw theCause; }Should be:
if (type.isAssignableFrom(theCause.getCause().getClass()))
{ throw theCause.getCause(); }I tried it out, this way the client gets the declared exception. I dont know
what you exactly meant by providing a patch (I never contributed to OS
projects), but you may check / consider this 2 small corrections.
Cheers,
AndrĂ¡s