cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DOSGI-102) DOSGI RI can not map SOAP exception to custom exceptions on the client side
Date Wed, 14 Dec 2011 18:25:30 GMT
DOSGI RI can not map SOAP exception to custom exceptions on the client side
---------------------------------------------------------------------------

                 Key: DOSGI-102
                 URL: https://issues.apache.org/jira/browse/DOSGI-102
             Project: CXF Distributed OSGi
          Issue Type: Bug
          Components: DSW
    Affects Versions: 1.3
            Reporter: Sergey Beryozkin
            Assignee: Sergey Beryozkin
             Fix For: 1.3


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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message