aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy McCright (JIRA)" <>
Subject [jira] [Commented] (ARIES-1251) Support jpa 2.0 and 2.1 with the same code base
Date Wed, 22 Oct 2014 19:41:34 GMT


Andy McCright commented on ARIES-1251:

Hi Christian,

I'm seeing some UndeclaredThrowableExceptions in some of my tests - for example:
com.sun.proxy.$Proxy16.persist(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I'm wondering if there is an InvocationTargetException being thrown - if so, maybe the EntityManagerProxyFactory$EMHandler
invoke method should catch it and throw the underlying exception (which presumably would either
be declared exception or a RuntimeException/Error).  Can you think of anything else that might
be causing this?  

Thanks, Andy

> Support jpa 2.0 and 2.1 with the same code base
> -----------------------------------------------
>                 Key: ARIES-1251
>                 URL:
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
> We currently have two separate code bases for jpa 2.0 and 2.1 support. This is very difficult
to manage when we do source code changes.
> So I will try to create one code that supports both jpa 2.0 and 2.1 by using Dynamic
Proxies where we implement EntityManager or EntityManagerFactory. 

This message was sent by Atlassian JIRA

View raw message