Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2295

Referenced service throws UndeclaredThrowableException instead of real one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • karaf-1.4.0
    • karaf 1.6.0
    • Karaf
    • None
    • XP / Ubuntu

    Description

      Project uses Blueprint. There are 3 bundles.

      Bundle 1 - exports an API - API includes an interface X with a method Y sending an exception Z
      Bundle 2 - implements the interface X of the API and exports it with <service> tag
      Bundle 3 - uses the exported service of the API with <reference> tag (and gets without "knowing" it the service of Bundle 2)

      Expected behavior: Bundle 3 calls the method Y of interface X and gets the exception Z (when thrown).
      Obtained behavior: Bundle 3 calls the method Y of interface X and gets the exception:
      UndeclaredThrowableException
      caused by InvocationTargetException
      caused by Z

      This is 100% reproductible

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              jeanphi Jean-Philippe CLEMENT
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: