You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/07/14 14:58:05 UTC

[jira] [Resolved] (ARIES-1018) JPA container throws Exception when stopped without a JPA-Provider present

     [ https://issues.apache.org/jira/browse/ARIES-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved ARIES-1018.
-----------------------------------------

    Resolution: Fixed

> JPA container throws Exception when stopped without a JPA-Provider present
> --------------------------------------------------------------------------
>
>                 Key: ARIES-1018
>                 URL: https://issues.apache.org/jira/browse/ARIES-1018
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>         Environment: karaf 3.0.0-SNAPSHOT, KARAF-2.3.1-SHAPSHOT
>            Reporter: Christoph Gritschenberger
>            Assignee: Jean-Baptiste Onofré
>         Attachments: fix-exception.patch
>
>
> To reproduce unpack the latest karaf-snapshot and install the JPA-feature:
> {code}
> feature:install jpa
> {code}
> and install a bundle containing a persistence-unit.
> stop the JPA Container bundle.
> {code}
> {code}
> This happens since aries-util was upgraded to 1.1.0. The issue did not occur with util-1.0.0.
> I investigated a bit and found the problem:
> In util-1.1.0 the BundleHookBundleTracker was changed to untrack all bundles when it's closed. In util-1.0 closing did essentially nothing but setting a closed-flag.
> So when using JPA Container with util-1.1.0 the persistence-units are destroyed without ever being created.
> This also happens when having a JPA Provider (like OpenJPA) installed, but when it's stopped before the the JPA-Container Bundle is stopped (the usual case).



--
This message was sent by Atlassian JIRA
(v6.2#6252)