You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ievgen Tarasov (JIRA)" <ji...@apache.org> on 2015/08/06 12:55:04 UTC
[jira] [Updated] (CXF-6522) ThreadLocalInvocationHandler doesn't
handle InvocationTargetException
[ https://issues.apache.org/jira/browse/CXF-6522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ievgen Tarasov updated CXF-6522:
--------------------------------
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.
was:
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.
> ThreadLocalInvocationHandler doesn't handle InvocationTargetException
> ---------------------------------------------------------------------
>
> Key: CXF-6522
> URL: https://issues.apache.org/jira/browse/CXF-6522
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.1, 3.1.2
> Reporter: Ievgen Tarasov
> Attachments: CXF-6522.patch, CXF-Undeclared-Throwable.txt
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)