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

ThreadLocalInvocationHandler doesn't handle InvocationTargetException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 3.1.2
    • Fix Version/s: 3.1.3, 2.7.18, 3.0.7
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown
    • Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: