Unresolved dependency using blueprint transaction

classic Classic list List threaded Threaded
36 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Unresolved dependency using blueprint transaction

ceugster
Hi
I try to implement a jpa bundle into karaf 4.2.0. with tycho i build the
bundles, that works fine. Then in karaf I do feature:repo-add and
feature:install works well too. But listing the bundles shows up status
grace period for my jpa bundle. bundle:diag shows:

Status: GracePeriod
Blueprint
06.06.18, 19:59
Missing dependencies:
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0))
Declarative Services

I tried other versions of transactions too (e.g. v1.0.0, v1.1.0) How can I
resolve this problem?
Thank you for any hints!
Christian



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

jbonofre
Hi Christian,

The transaction namespace handler is provided by the transaction feature
"conditionaly" of aries-blueprint.

So, did you installed aries-blueprint feature before transaction ?

Regards
JB

On 06/06/2018 20:05, ceugster wrote:

> Hi
> I try to implement a jpa bundle into karaf 4.2.0. with tycho i build the
> bundles, that works fine. Then in karaf I do feature:repo-add and
> feature:install works well too. But listing the bundles shows up status
> grace period for my jpa bundle. bundle:diag shows:
>
> Status: GracePeriod
> Blueprint
> 06.06.18, 19:59
> Missing dependencies:
> (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0))
> Declarative Services
>
> I tried other versions of transactions too (e.g. v1.0.0, v1.1.0) How can I
> resolve this problem?
> Thank you for any hints!
> Christian
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

ceugster
Hi JB
because I was not sure if I did feature:install of aries-blueprint and
transaction in the right order, I installed a clean version of karaf-4.2 and
then

feature:install aries-blueprint
feature:install transactions
feature:install eclipselink
feature:install my bundles

then a bundle:diag showed following:

karaf@root()> bundle:diag 75
Herakles Jpa Persistence Bundle (75)
------------------------------------
Status: GracePeriod
Blueprint
06.06.18, 21:26
Missing dependencies:
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0))
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0))

it seems even worse than before!? Do you have an idea, what could be the
solution to this?

Thank you!
Christian



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

RE: Unresolved dependency using blueprint transaction

Dutertry Nicolas-2
Hi,

I have also run into this issue. I think there is a bug in Karaf 4.2.0 related to blueprint namespace loading.
It does not happen all the time, but when it is the case, the solution is to manually restart bundle org.apache.aries.transaction.blueprint-2.1.0.

Regards,
--
Nicolas Dutertry

-----Message d'origine-----
De : ceugster [mailto:[hidden email]]
Envoyé : mercredi 6 juin 2018 21:32
À : [hidden email]
Objet : Re: Unresolved dependency using blueprint transaction

Hi JB
because I was not sure if I did feature:install of aries-blueprint and
transaction in the right order, I installed a clean version of karaf-4.2 and
then

feature:install aries-blueprint
feature:install transactions
feature:install eclipselink
feature:install my bundles

then a bundle:diag showed following:

karaf@root()> bundle:diag 75
Herakles Jpa Persistence Bundle (75)
------------------------------------
Status: GracePeriod
Blueprint
06.06.18, 21:26
Missing dependencies:
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0))
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0))

it seems even worse than before!? Do you have an idea, what could be the
solution to this?

Thank you!
Christian



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

RE: Unresolved dependency using blueprint transaction

ceugster
Hi

I tried to restart the bundle in question, but nothing changed.

This is the list of my bundle:list

karaf@root()> feature:uninstall pax-cdi
karaf@root()> bundle:list
START LEVEL 100 , List Threshold: 50
 ID │ State       │ Lvl │ Version                 │ Name
────┼─────────────┼─────┼─────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 21 │ Active      │  80 │ 4.2.0                   │ Apache Karaf :: OSGi
Services :: Event
 57 │ Active      │  80 │ 3.0.0                   │ Expression Language 3.0
API
 58 │ Active      │  80 │ 1.2.0                   │ CDI APIs
 59 │ Active      │  80 │ 1.2                     │ javax.interceptor API
 60 │ Active      │  80 │ 1.2                     │ javax.transaction API
 61 │ Active      │  80 │ 1.1.1                   │ Apache Aries Transaction
Blueprint
 62 │ Active      │  80 │ 2.1.0                   │ Apache Aries Transaction
Blueprint
 63 │ Active      │  80 │ 1.0.2                   │ Apache Felix Coordinator
Service
 64 │ Active      │  80 │ 1.0.0.2                 │ Apache ServiceMix ::
Bundles :: javax.inject
 65 │ Active      │  80 │ 0.2.0                   │ pax-transx-tm-api
 66 │ Active      │  80 │ 0.2.0                   │ pax-transx-tm-geronimo
 67 │ Active      │  80 │ 2.2.0.v201708071007     │ Java Persistence API 2.2
 68 │ Active      │  80 │ 2.6.1                   │ Apache Aries JPA
Container adapter for EclipseLink
 69 │ Active      │  80 │ 3.5.2.v201605171345     │ EclipseLink ANTLR
 70 │ Active      │  80 │ 6.0.0.v201710052159     │ EclipseLink ASM
 71 │ Active      │  80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Core
 72 │ Active      │  80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink JPA
 73 │ Active      │  80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Hermes
Parser
 96 │ Active      │  80 │ 4.6.0                   │ Apache XBean OSGI Bundle
Utilities
 97 │ Active      │  80 │ 4.6.0                   │ Apache XBean ::
Classpath Resource Finder
135 │ Active      │  80 │ 1.9.2.1                 │ Apache ServiceMix ::
Bundles :: jasypt
136 │ Active      │  80 │ 1.2.0                   │ OPS4J Pax JDBC Generic
Driver Extender
137 │ Active      │  80 │ 1.2.0                   │ OPS4J Pax JDBC Config
138 │ Active      │  80 │ 1.2.0                   │ OPS4J Pax JDBC Pooling
Support Base
139 │ Active      │  80 │ 1.0.0.201505202023      │
org.osgi:org.osgi.service.jdbc
145 │ Active      │  80 │ 4.2.0                   │ Apache Karaf :: JDBC ::
Core
149 │ Active      │  80 │ 1.2.0                   │ OPS4J Pax JDBC Apache
Derby Driver Adapter
157 │ Active      │  80 │ 1.0.0.201806071126      │ Herakles Persistence API
Bundle
158 │ GracePeriod │  80 │ 1.0.0.201806071126      │ Herakles Jpa Persistence
Bundle
159 │ Active      │  80 │ 1.0.0.201806071126      │ Herakles Derby
Datasource Bundle
160 │ Active      │  80 │ 10.14.2000000.1828579   │ Apache Derby 10.14
karaf@root()>            

and the bundle:diag result

karaf@root()> bundle:diag 158
Herakles Jpa Persistence Bundle (158)
-------------------------------------
Status: GracePeriod
Blueprint
07.06.18, 13:26
Missing dependencies:
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v1.1.0))
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0))
Declarative Services

                                                                                                                                                       



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

RE: Unresolved dependency using blueprint transaction

ceugster
Hi
I reinstalled apache-karaf-4.2.0 from scratch and did afterwards:

feature:install pax-transx-tm
feature:install aries-blueprint
feature:install eclipselink

on the last entry I got the following stack trace (see later on) saying,
invalid java version 54:

My system:property

os.arch=x86_64
os.name=Mac OS X
os.version=10.13.5
path.separator=:
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
sun.arch.data.model=64
sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib
sun.cpu.endian=little
sun.cpu.isalist=
sun.io.unicode.encoding=UnicodeBig
sun.java.command=org.apache.karaf.main.Main
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
user.country=CH
user.dir=/Users/christian/Projekte/ceugster/Frameworks/apache-karaf-4.2.0
user.home=/Users/christian
user.language=de
user.name=christian
user.timezone=Europe/Zurich
xml.catalog.files=
karaf@root()>                                                                                                                                                                  

and the stack trace:

karaf@root()> feature:install eclipselink
13:59:37.522 [features-3-thread-1] ERROR
org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving
service from ServiceRecipe[name='.component-4']
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor <name: blueprintContainer, getter:
null, setter: [class
org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(interface
org.osgi.service.blueprint.container.BlueprintContainer)]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:821)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
        at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:268)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
        at
org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285)
~[?:?]
        at
org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252)
~[?:?]
        at
org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:365)
~[?:?]
        at
org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:540)
~[?:?]
        at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
~[?:?]
        at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
~[?:?]
        at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350)
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3737) ~[?:?]
        at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:95)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:93)
~[?:?]
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
~[?:?]
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
~[?:?]
        at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
~[?:?]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
~[?:?]
        at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
~[?:?]
        at
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
~[?:?]
        at
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
~[?:?]
        at
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
~[?:?]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4595)
~[?:?]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3587) ~[?:?]
        at
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:475)
~[?:?]
        at
org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:738)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:415)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
~[?:?]
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
~[?:?]
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
~[?:?]
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
~[?:?]
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
~[?:?]
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
~[?:?]
        at
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
~[?:?]
        at
org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
~[?:?]
        at
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
        at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
~[?:?]
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116)
~[?:?]
        at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:996)
~[?:?]
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
~[?:?]
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
[?:?]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[?:?]
        at java.lang.Thread.run(Thread.java:844) [?:?]
Caused by:
org.osgi.service.blueprint.container.ComponentDefinitionException:
java.lang.IllegalArgumentException: Invalid Java version 54
        at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:141)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
        at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788)
~[?:?]
        at
org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177)
~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:?]
        at
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]
        at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
        at
org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662)
~[?:?]
        at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819)
~[?:?]
        ... 65 more
Caused by: java.lang.IllegalArgumentException: Invalid Java version 54
        at
org.apache.aries.proxy.impl.ProxyUtils.getWeavingJavaVersion(ProxyUtils.java:64)
~[?:?]
        at
org.apache.aries.proxy.impl.interfaces.InterfaceCombiningClassAdapter.&lt;init>(InterfaceCombiningClassAdapter.java:79)
~[?:?]
        at
org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:155)
~[?:?]
        at
org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97)
~[?:?]
        at
org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)
~[?:?]
        at
org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77)
~[?:?]
        at
org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:42)
~[?:?]
        at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)
~[?:?]
        at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:125)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
        at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152)
~[?:?]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788)
~[?:?]
        at
org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177)
~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:?]
        at
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]
        at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
        at
org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662)
~[?:?]
        at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412)
~[?:?]
        at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819)
~[?:?]
        ... 65 more
karaf@root()>      

java



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

RE: Unresolved dependency using blueprint transaction

jbonofre
In reply to this post by ceugster
I don't see the Aries blueprint bundles. Did you have install the aries-blueprint before any other features ?

Regards
JB
Le 7 juin 2018, à 12:31, ceugster <[hidden email]> a écrit:
Hi

I tried to restart the bundle in question, but nothing changed.

This is the list of my bundle:list

karaf@root()> feature:uninstall pax-cdi
karaf@root()> bundle:list
START LEVEL 100 , List Threshold: 50
ID │ State │ Lvl │ Version │ Name
────┼─────────────┼─────┼─────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
21 │ Active │ 80 │ 4.2.0 │ Apache Karaf :: OSGi
Services :: Event
57 │ Active │ 80 │ 3.0.0 │ Expression Language 3.0
API
58 │ Active │ 80 │ 1.2.0 │ CDI APIs
59 │ Active │ 80 │ 1.2 │ javax.interceptor API
60 │ Active │ 80 │ 1.2 │ javax.transaction API
61 │ Active │ 80 │ 1.1.1 │ Apache Aries Transaction
Blueprint
62 │ Active │ 80 │ 2.1.0 │ Apache Aries Transaction
Blueprint
63 │ Active │ 80 │ 1.0.2 │ Apache Felix Coordinator
Service
64 │ Active │ 80 │ 1.0.0.2 │ Apache ServiceMix ::
Bundles :: javax.inject
65 │ Active │ 80 │ 0.2.0 │ pax-transx-tm-api
66 │ Active │ 80 │ 0.2.0 │ pax-transx-tm-geronimo
67 │ Active │ 80 │ 2.2.0.v201708071007 │ Java Persistence API 2.2
68 │ Active │ 80 │ 2.6.1 │ Apache Aries JPA
Container adapter for EclipseLink
69 │ Active │ 80 │ 3.5.2.v201605171345 │ EclipseLink ANTLR
70 │ Active │ 80 │ 6.0.0.v201710052159 │ EclipseLink ASM
71 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Core
72 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink JPA
73 │ Active │ 80 │ 2.7.1.v20171221-bd47e8f │ EclipseLink Hermes
Parser
96 │ Active │ 80 │ 4.6.0 │ Apache XBean OSGI Bundle
Utilities
97 │ Active │ 80 │ 4.6.0 │ Apache XBean ::
Classpath Resource Finder
135 │ Active │ 80 │ 1.9.2.1 │ Apache ServiceMix ::
Bundles :: jasypt
136 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Generic
Driver Extender
137 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Config
138 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Pooling
Support Base
139 │ Active │ 80 │ 1.0.0.201505202023 │
org.osgi:org.osgi.service.jdbc
145 │ Active │ 80 │ 4.2.0 │ Apache Karaf :: JDBC ::
Core
149 │ Active │ 80 │ 1.2.0 │ OPS4J Pax JDBC Apache
Derby Driver Adapter
157 │ Active │ 80 │ 1.0.0.201806071126 │ Herakles Persistence API
Bundle
158 │ GracePeriod │ 80 │ 1.0.0.201806071126 │ Herakles Jpa Persistence
Bundle
159 │ Active │ 80 │ 1.0.0.201806071126 │ Herakles Derby
Datasource Bundle
160 │ Active │ 80 │ 10.14.2000000.1828579 │ Apache Derby 10.14
karaf@root()>

and the bundle:diag result

karaf@root()> bundle:diag 158
Herakles Jpa Persistence Bundle (158)


Status: GracePeriod
Blueprint
07.06.18, 13:26
Missing dependencies:
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v1.1.0))
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/jpa/v2.0.0))
Declarative Services





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

fpapon
In reply to this post by ceugster
Hi,

You should use Java <= 9 for Karaf 4.2.0.

Can you tried with Java 9 ?


François Papon
[hidden email]
Open3m - https://www.open3m.io

Le 07/06/2018 à 16:06, ceugster a écrit :

> Hi
> I reinstalled apache-karaf-4.2.0 from scratch and did afterwards:
>
> feature:install pax-transx-tm
> feature:install aries-blueprint
> feature:install eclipselink
>
> on the last entry I got the following stack trace (see later on) saying,
> invalid java version 54:
>
> My system:property
>
> os.arch=x86_64
> os.name=Mac OS X
> os.version=10.13.5
> path.separator=:
> socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
> sun.arch.data.model=64
> sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib
> sun.cpu.endian=little
> sun.cpu.isalist=
> sun.io.unicode.encoding=UnicodeBig
> sun.java.command=org.apache.karaf.main.Main
> sun.java.launcher=SUN_STANDARD
> sun.jnu.encoding=UTF-8
> sun.management.compiler=HotSpot 64-Bit Tiered Compilers
> sun.os.patch.level=unknown
> user.country=CH
> user.dir=/Users/christian/Projekte/ceugster/Frameworks/apache-karaf-4.2.0
> user.home=/Users/christian
> user.language=de
> user.name=christian
> user.timezone=Europe/Zurich
> xml.catalog.files=
> karaf@root()>                                                                                                                                                                  
>
> and the stack trace:
>
> karaf@root()> feature:install eclipselink
> 13:59:37.522 [features-3-thread-1] ERROR
> org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving
> service from ServiceRecipe[name='.component-4']
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error
> setting property: PropertyDescriptor <name: blueprintContainer, getter:
> null, setter: [class
> org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(interface
> org.osgi.service.blueprint.container.BlueprintContainer)]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:821)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:268)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:365)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:540)
> ~[?:?]
> at
> org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
> ~[?:?]
> at
> org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
> ~[?:?]
> at
> org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350)
> ~[?:?]
> at org.apache.felix.framework.Felix.getService(Felix.java:3737) ~[?:?]
> at
> org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:95)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:93)
> ~[?:?]
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
> ~[?:?]
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
> ~[?:?]
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> ~[?:?]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> ~[?:?]
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
> ~[?:?]
> at
> org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
> ~[?:?]
> at
> org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
> ~[?:?]
> at
> org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
> ~[?:?]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4595)
> ~[?:?]
> at org.apache.felix.framework.Felix.registerService(Felix.java:3587) ~[?:?]
> at
> org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:475)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:738)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:415)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
> ~[?:?]
> at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
> ~[?:?]
> at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
> ~[?:?]
> at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
> ~[?:?]
> at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
> ~[?:?]
> at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
> ~[?:?]
> at
> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
> ~[?:?]
> at
> org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
> ~[?:?]
> at
> org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
> ~[?:?]
> at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?]
> at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) ~[?:?]
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
> at
> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
> ~[?:?]
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116)
> ~[?:?]
> at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:996)
> ~[?:?]
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
> ~[?:?]
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
> ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
> [?:?]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> [?:?]
> at java.lang.Thread.run(Thread.java:844) [?:?]
> Caused by:
> org.osgi.service.blueprint.container.ComponentDefinitionException:
> java.lang.IllegalArgumentException: Invalid Java version 54
> at
> org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:141)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788)
> ~[?:?]
> at
> org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177)
> ~[?:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
> at
> org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662)
> ~[?:?]
> at
> org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819)
> ~[?:?]
> ... 65 more
> Caused by: java.lang.IllegalArgumentException: Invalid Java version 54
> at
> org.apache.aries.proxy.impl.ProxyUtils.getWeavingJavaVersion(ProxyUtils.java:64)
> ~[?:?]
> at
> org.apache.aries.proxy.impl.interfaces.InterfaceCombiningClassAdapter.&lt;init>(InterfaceCombiningClassAdapter.java:79)
> ~[?:?]
> at
> org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:155)
> ~[?:?]
> at
> org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97)
> ~[?:?]
> at
> org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)
> ~[?:?]
> at
> org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77)
> ~[?:?]
> at
> org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:42)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:125)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
> ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
> at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788)
> ~[?:?]
> at
> org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177)
> ~[?:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
> at
> org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662)
> ~[?:?]
> at
> org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412)
> ~[?:?]
> at
> org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819)
> ~[?:?]
> ... 65 more
> karaf@root()>      
>
> java
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

jbonofre
Oh right, Java 10 is not fully supported yet.

I sent a new aries proxy release on vote this morning to have a better support of java 10 and 11. It's planned for Karaf 4.2.1.

Regards
JB
Le 7 juin 2018, à 13:12, Francois Papon <[hidden email]> a écrit:
Hi,

You should use Java <= 9 for Karaf 4.2.0.

Can you tried with Java 9 ?


François Papon
[hidden email]
Open3m - https://www.open3m.io

Le 07/06/2018 à 16:06, ceugster a écrit :
Hi
I reinstalled apache-karaf-4.2.0 from scratch and did afterwards:

feature:install pax-transx-tm
feature:install aries-blueprint
feature:install eclipselink

on the last entry I got the following stack trace (see later on) saying,
invalid java version 54:

My system:property

os.arch=x86_64
os.name=Mac OS X
os.version=10.13.5
path.separator=:
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
sun.arch.data.model=64
sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib
sun.cpu.endian=little
sun.cpu.isalist=
sun.io.unicode.encoding=UnicodeBig
sun.java.command=org.apache.karaf.main.Main
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
user.country=CH
user.dir=/Users/christian/Projekte/ceugster/Frameworks/apache-karaf-4.2.0
user.home=/Users/christian
user.language=de
user.name=christian
user.timezone=Europe/Zurich
xml.catalog.files=
karaf@root()>

and the stack trace:

karaf@root()> feature:install eclipselink
13:59:37.522 [features-3-thread-1] ERROR
org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving
service from ServiceRecipe[name='.component-4']
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor <name: blueprintContainer, getter:
null, setter: [class
org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(interface
org.osgi.service.blueprint.container.BlueprintContainer)]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:821)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:268)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
at
org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285)
~[?:?]
at
org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252)
~[?:?]
at
org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:365)
~[?:?]
at
org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:540)
~[?:?]
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
~[?:?]
at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
~[?:?]
at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350)
~[?:?]
at org.apache.felix.framework.Felix.getService(Felix.java:3737) ~[?:?]
at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:95)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintEventDispatcher$2.addingService(BlueprintEventDispatcher.java:93)
~[?:?]
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
~[?:?]
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
~[?:?]
at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
~[?:?]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
~[?:?]
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
~[?:?]
at
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
~[?:?]
at
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
~[?:?]
at
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
~[?:?]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4595)
~[?:?]
at org.apache.felix.framework.Felix.registerService(Felix.java:3587) ~[?:?]
at
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:475)
~[?:?]
at
org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:738)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:415)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
~[?:?]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
~[?:?]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
~[?:?]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
~[?:?]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
~[?:?]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
~[?:?]
at
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
~[?:?]
at
org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
~[?:?]
at
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
~[?:?]
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) ~[?:?]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
~[?:?]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116)
~[?:?]
at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:996)
~[?:?]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
~[?:?]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[?:?]
at java.lang.Thread.run(Thread.java:844) [?:?]
Caused by:
org.osgi.service.blueprint.container.ComponentDefinitionException:
java.lang.IllegalArgumentException: Invalid Java version 54
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:141)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788)
~[?:?]
at
org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177)
~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:?]
at
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]
at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at
org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662)
~[?:?]
at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819)
~[?:?]
... 65 more
Caused by: java.lang.IllegalArgumentException: Invalid Java version 54
at
org.apache.aries.proxy.impl.ProxyUtils.getWeavingJavaVersion(ProxyUtils.java:64)
~[?:?]
at
org.apache.aries.proxy.impl.interfaces.InterfaceCombiningClassAdapter.&lt;init>(InterfaceCombiningClassAdapter.java:79)
~[?:?]
at
org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:155)
~[?:?]
at
org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97)
~[?:?]
at
org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)
~[?:?]
at
org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77)
~[?:?]
at
org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:42)
~[?:?]
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)
~[?:?]
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:125)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:108)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:810)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:784)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:765)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:699)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:338)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:152)
~[?:?]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:788)
~[?:?]
at
org.apache.aries.transaction.parsing.TxNamespaceHandler.setBlueprintContainer(TxNamespaceHandler.java:177)
~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:?]
at
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:?]
at
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at
org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:662)
~[?:?]
at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:412)
~[?:?]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:819)
~[?:?]
... 65 more
karaf@root()>

java



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

ceugster
Hi

I changed the jdk to jdk-9. And indeed there is no more complaining about
dependencies. Thank you for your help!

Now I get the following message, when I invoke feature:install my bundles.
The jpa bundle failed to  start and bundle:diag says:

Herakles Jpa Persistence Bundle (133)
-------------------------------------
Status: Failure
Blueprint
07.06.18, 15:27
Exception:
Unable to validate xml
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
validate xml
        at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:349)
        at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:336)
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:345)
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
        at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
        at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
        at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
        at
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
        at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
        at
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
        at
org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
        at
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2174)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
        at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116)
        at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:996)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c:
xDCbereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration
fxFCr Element 'jpa:context' gefunden werden.
        at
java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
        at
java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:395)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:326)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:283)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:510)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3587)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2142)
        at
java.xml/com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:828)
        at
java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:277)
        at
java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:244)
        at
java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:190)
        at
java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:108)
        at java.xml/javax.xml.validation.Validator.validate(Validator.java:124)
        at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:346)
        ... 28 more

Declarative Services


Is there a bundle missing or what could be the problem?

Thank you!                                                                                                                                                                                                  



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

ceugster
This post was updated on .
... and the blueprint is:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
        xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0"
        xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0">

        <bean id="query"
                class="ch.eugster.herakles.persistence.jpa.query.JpaQuery">
                <tx:transaction method="*" value="Required" />
                <jpa:context unitname="herakles" property="entityManager" />
                <property name="logService" ref="logService" />
        </bean>

        <service ref="query"
                interface="ch.eugster.herakles.persistence.api.query.Query" />

        <bean id="populator"
                class="ch.eugster.herakles.persistence.jpa.query.Populator"
                init-method="populate" activation="eager">
                <property name="query" ref="query" />
                <property name="logService" ref="logService" />
        </bean>
</blueprint>

persistence.xml

<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence">
        <persistence-unit name="herakles">
                <jta-data-source>osgi.service/jdbc/xaheraklesdb</jta-data-source>
                <non-jta-data-source>osgi.service/jdbc/heraklesdb</non-jta-data-source>
                <class>ch.eugster.herakles.persistence.jpa.util.URIConverter</class>
                <class>ch.eugster.herakles.persistence.jpa.util.UUIDConverter</class>

                <class>ch.eugster.herakles.persistence.jpa.model.JpaAbstractEntity</class>
                <class>ch.eugster.herakles.persistence.jpa.model.JpaPermission</class>
                <class>ch.eugster.herakles.persistence.jpa.model.JpaRolePermission</class>
                <class>ch.eugster.herakles.persistence.jpa.model.JpaSystemRole</class>
                <class>ch.eugster.herakles.persistence.jpa.model.JpaSystemUser</class>
                <exclude-unlisted-classes>true</exclude-unlisted-classes>
        </persistence-unit>
</persistence>



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

jbonofre
That's the persistence.xml,  not the blueprint.

The problem seems in your blueprint where you use <jpa:context/>.

Regards
JB

On 07/06/2018 15:32, ceugster wrote:

> ... and the blueprint is:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"
> xmlns="http://java.sun.com/xml/ns/persistence">
> <persistence-unit name="herakles">
> <jta-data-source>osgi.service/jdbc/xaheraklesdb</jta-data-source>
> <non-jta-data-source>osgi.service/jdbc/heraklesdb</non-jta-data-source>
> <class>ch.eugster.herakles.persistence.jpa.util.URIConverter</class>
> <class>ch.eugster.herakles.persistence.jpa.util.UUIDConverter</class>
>
> <class>ch.eugster.herakles.persistence.jpa.model.JpaAbstractEntity</class>
> <class>ch.eugster.herakles.persistence.jpa.model.JpaPermission</class>
> <class>ch.eugster.herakles.persistence.jpa.model.JpaRolePermission</class>
> <class>ch.eugster.herakles.persistence.jpa.model.JpaSystemRole</class>
> <class>ch.eugster.herakles.persistence.jpa.model.JpaSystemUser</class>
> <exclude-unlisted-classes>true</exclude-unlisted-classes>
> </persistence-unit>
> </persistence>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

ceugster
Hi
sorry for that, i corrected the message and added the blueprint, hope it
helps :)



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

jbonofre
Erf, we don't see your change on the mailing list (I guess you used the
nabble forum).

Can you send a new message with the blueprint please ?

Thanks,
Regards
JB

On 07/06/2018 16:25, ceugster wrote:
> Hi
> sorry for that, i corrected the message and added the blueprint, hope it
> helps :)
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

ceugster
... and the blueprint is:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
        xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0"
        xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0">

        <bean id="query"
                class="ch.eugster.herakles.persistence.jpa.query.JpaQuery">
                <tx:transaction method="*" value="Required" />
                <jpa:context unitname="herakles" property="entityManager" />
                <property name="logService" ref="logService" />
        </bean>

        <service ref="query"
                interface="ch.eugster.herakles.persistence.api.query.Query"
/>

        <bean id="populator"
                class="ch.eugster.herakles.persistence.jpa.query.Populator"
                init-method="populate" activation="eager">
                <property name="query" ref="query" />
                <property name="logService" ref="logService" />
        </bean>
</blueprint>



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

fpapon
Hi,

In your error trace, we can see :

Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c:
xDCbereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration
fxFCr Element 'jpa:context' gefunden werden.

In your bundle list you have the 2.2.0 version of the Java Persistance
API and the 2.6.1 version of the Apache Aries JPA  :

 67 │ Active      │  80 │ 2.2.0.v201708071007     │ Java Persistence API 2.2
 68 │ Active      │  80 │ 2.6.1                   │ Apache Aries JPA

but in your blueprint.xml you define 2.0.0 xmlns version.

Maybe you should align the version in your blueprint.xml


François Papon
[hidden email]
Open3m - https://www.open3m.io

Le 07/06/2018 à 18:41, ceugster a écrit :

> ... and the blueprint is:
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>         xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0"
>         xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0">
>
>         <bean id="query"
>                 class="ch.eugster.herakles.persistence.jpa.query.JpaQuery">
>                 <tx:transaction method="*" value="Required" />
>                 <jpa:context unitname="herakles" property="entityManager" />
>                 <property name="logService" ref="logService" />
>         </bean>
>
>         <service ref="query"
>                 interface="ch.eugster.herakles.persistence.api.query.Query"
> />
>
>         <bean id="populator"
>                 class="ch.eugster.herakles.persistence.jpa.query.Populator"
>                 init-method="populate" activation="eager">
>                 <property name="query" ref="query" />
>                 <property name="logService" ref="logService" />
>         </bean>
> </blueprint>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

ceugster
Hi François
this did not solve the problem. I think there are unresolved dependencies,
but I don't see what bundles are missing.




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

Guillaume Nodet-2
In reply to this post by ceugster
You need to install the "transaction" feature:

> repo-add enterprise
> feature:install transaction

Cheers,
Guillaume

2018-06-06 20:05 GMT+02:00 ceugster <[hidden email]>:
Hi
I try to implement a jpa bundle into karaf 4.2.0. with tycho i build the
bundles, that works fine. Then in karaf I do feature:repo-add and
feature:install works well too. But listing the bundles shows up status
grace period for my jpa bundle. bundle:diag shows:

Status: GracePeriod
Blueprint
06.06.18, 19:59
Missing dependencies:
(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/xmlns/transactions/v2.0.0))
Declarative Services

I tried other versions of transactions too (e.g. v1.0.0, v1.1.0) How can I
resolve this problem?
Thank you for any hints!
Christian



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



--
------------------------
Guillaume Nodet

Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

jbonofre
In reply to this post by ceugster
Did you install the transaction feature (not the bundle) ? It brings the transaction.blueprint namespace.

Regards
JB
Le 7 juin 2018, à 19:47, ceugster <[hidden email]> a écrit:
Hi François
this did not solve the problem. I think there are unresolved dependencies,
but I don't see what bundles are missing.




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Unresolved dependency using blueprint transaction

jbonofre
In reply to this post by ceugster
I'm pretty sure you will love the new examples where the readme mentions all the steps/features to install.

Regards
JB
Le 7 juin 2018, à 19:47, ceugster <[hidden email]> a écrit:
Hi François
this did not solve the problem. I think there are unresolved dependencies,
but I don't see what bundles are missing.




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
12