[ 
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)

Reply via email to