aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Gritschenberger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1018) JPA container throws Exception when stopped without a JPA-Provider present
Date Sat, 01 Feb 2014 13:58:09 GMT

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

Christoph Gritschenberger commented on ARIES-1018:
--------------------------------------------------

Actually I see no reason why the jpa-container should throw an Exception anyway here.

> 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
>         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.1.5#6160)

Mime
View raw message