Details
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.