Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6522

ThreadLocalInvocationHandler doesn't handle InvocationTargetException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1, 3.1.2
    • 3.1.3, 2.7.18, 3.0.7
    • JAX-RS
    • None
    • Unknown
    • Patch

    Description

      For example, it happens if a date passed in a FIQL query cannot be parsed. FiqlParser throws a SearchParseException, but because ThreadLocalInvocationHandler doesn't handle InvocationTargetException, the code that invoked the parser (via SearchContext) receives UndeclaredThrowableException (see CXF-Undeclared-Throwable.txt for details).

      A patch that fixes InvocationTargetException handling is provided.

      Attachments

        1. CXF-6522.patch
          6 kB
          Ievgen Tarasov
        2. CXF-Undeclared-Throwable.txt
          8 kB
          Ievgen Tarasov

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            eugene.tarasov Ievgen Tarasov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: