aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tuomas Kiviaho (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1271) EntityManager throws InvocationtargetException instead of original cause
Date Fri, 16 Jan 2015 07:54:34 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14279936#comment-14279936
] 

Tuomas Kiviaho commented on ARIES-1271:
---------------------------------------

Test case could be a done using a mock provider giving out eventually an EntityManager that
throws PersistenceException or one of it's derivates. 

Previously you'd be getting InvocationTargetException although the JPA API states that this
is impossible. I wasn't expecting such an API breach and the exception went on terminating
the JTA transaction as well which as you can imagine wasn't a nice surprise.

> EntityManager throws InvocationtargetException instead of original cause
> ------------------------------------------------------------------------
>
>                 Key: ARIES-1271
>                 URL: https://issues.apache.org/jira/browse/ARIES-1271
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: jpa-container-1.0.3, jpa-container-context-1.0.5
>
>
> See https://issues.apache.org/jira/browse/ARIES-1251?focusedCommentId=14201908&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14201908



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message