Uploaded image for project: 'CXF Distributed OSGi (Retired)'
  1. CXF Distributed OSGi (Retired)
  2. DOSGI-102

DOSGI RI can not map invocation exceptions to custom exceptions on the client side

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • common
    • None
    • Unknown

    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

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: