karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-6003) IllegalStateException: Need active coordination - cannot use JPA and Jasypt
Date Mon, 05 Nov 2018 16:51:00 GMT

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

Jean-Baptiste Onofré updated KARAF-6003:
----------------------------------------
    Priority: Blocker  (was: Critical)

> IllegalStateException: Need active coordination - cannot use JPA and Jasypt
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-6003
>                 URL: https://issues.apache.org/jira/browse/KARAF-6003
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.1
>            Reporter: Marek Łuniewski
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 4.2.2
>
>
> In version 4.2.1 one cannot use JPA because it causes java.lang.IllegalStateException:
Need active coordination. After my investigation I have found that it is caused because proxy
service is not created properly. When someone use JPA in the same bundle, as in Karaf tests,
it works fine. But problem occurs when using osgi service and osgi reference.
> Downgrading to version 4.1.5 of Karaf results in no possibility of using Jasypt (to protect
passwords) [using: org.jasypt.encryption.pbe.StandardPBEStringEncryptor]. It does not decrypt
passwords having marks ENC(...).
> I found that upgrading Blueprint fixes problem, so that JPA and Jasypt works perfectly.
I know that sometime ago ticket on Camel blocked Blueprint upgrade. It was: https://issues.apache.org/jira/browse/CAMEL-12570.
Currently this ticket is closed.
> Patch (for current code, which is version 4.2.1) is:
> {code:java}
> diff --git a/pom.xml b/pom.xml
> index 3d314da48c..f049b7ff86 100644
> --- a/pom.xml
> +++ b/pom.xml
> @@ -218,10 +218,11 @@
>          <aries.application.api.version>1.0.0</aries.application.api.version>
>          <aries.application.management.version>1.0.0</aries.application.management.version>
>          <aries.blueprint.api.version>1.0.1</aries.blueprint.api.version>
> -        <aries.blueprint.core.version>1.9.0</aries.blueprint.core.version>
> +        <aries.blueprint.core.version>1.10.0</aries.blueprint.core.version>
>          <aries.blueprint.core.compatibility.version>1.0.0</aries.blueprint.core.compatibility.version>
> -        <aries.blueprint.cm.version>1.2.0</aries.blueprint.cm.version>
> -        <aries.blueprint.web.version>1.0.1</aries.blueprint.web.version>
> +        <aries.blueprint.cm.version>1.3.0</aries.blueprint.cm.version>
> +        <aries.blueprint.web.version>1.1.1</aries.blueprint.web.version>
> +        <aries.blueprint.webosgi.version>1.0.1</aries.blueprint.webosgi.version>
>          <aries.blueprint.spring.version>0.6.0</aries.blueprint.spring.version>
>          <aries.blueprint.spring.extender.version>0.4.0</aries.blueprint.spring.extender.version>
>          <aries.jmx.api.version>1.1.5</aries.jmx.api.version>
> {code}
> and
> {code:java}
> diff --git a/assemblies/features/standard/src/main/feature/feature.xml b/assemblies/features/standard/src/main/feature/feature.xml
> index d19b87eb00..1813b2a0a5 100644
> --- a/assemblies/features/standard/src/main/feature/feature.xml
> +++ b/assemblies/features/standard/src/main/feature/feature.xml
> @@ -1429,7 +1429,7 @@ org.apache.felix.eventadmin.AddSubject=true
>          blueprint inside web-bundle containers" version="${project.version}">
>          <feature>war</feature>
>          <feature>aries-blueprint</feature>
> -        <bundle>mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.webosgi/${aries.blueprint.web.version}</bundle>
> +        <bundle>mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.webosgi/${aries.blueprint.webosgi.version}</bundle>
>      </feature>
>  
>      <feature name="wrap" description="Wrap URL handler" version="${pax.url.version}">
> {code}
> Hope it helps.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message