>>>>> Steinar Bang <[email protected]>:

> I noticed that the osgi.core version 6.0.0 artifact I have been using, was 
> pretty old (July 2014):
>  https://mvnrepository.com/artifact/org.osgi/org.osgi.core

> So I looked for OSGi 7 and found this:
>  https://mvnrepository.com/artifact/org.osgi/osgi.core

> The version 6.0.0 osgi.core artifact is from January 2015.
> The version 7.0.0 osgi.core artifact is from April 2018.

> I've tried with both of them, but got the same stack trace (or very
> similar stack trace) as the org.osgi.core 6.0.0 framework (the one below
> is from osgi.core 7.0.0):
[snip!]
> So this Java-11 change is possibly something that affects all OSGi 
> frameworks...?

I've googled a bit more and found this in the release notes of the
recently (May 2019) released felix framework 6.0.3:
    * [FELIX-5720] - Use PlatformClassLoader as boot classloader on java9

https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.framework-6.0.3/doc/changelog.txt
https://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.framework/6.0.3

The Pax Exam test still failed, but the stack trace is different (no
mention of the URLClassLoader):
Jun 08, 2019 9:37:07 AM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Exception in thread "KarafEmbeddedRunner" java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
        at 
org.ops4j.pax.exam.karaf.container.internal.runner.KarafEmbeddedRunner$1.run(KarafEmbeddedRunner.java:96)
Caused by: java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.ops4j.pax.exam.karaf.container.internal.runner.KarafEmbeddedRunner$1.run(KarafEmbeddedRunner.java:86)
Caused by: java.lang.RuntimeException: Error installing bundle listed in 
startup.properties with url: 
mvn:org.apache.karaf.features/org.apache.karaf.features.extension/4.2.5 and 
startlevel: 1
        at org.apache.karaf.main.Main.installAndStartBundles(Main.java:530)
        at org.apache.karaf.main.Main.launch(Main.java:273)
        ... 5 more
Caused by: org.osgi.framework.BundleException: Could not create bundle object.
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3312)
        at 
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
        at org.apache.karaf.main.Main.installAndStartBundles(Main.java:523)
        ... 6 more
Caused by: java.lang.UnsupportedOperationException: Unable to add extension 
bundle.
        at 
org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:430)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3279)
        ... 8 more

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/86wohwfrjr.fsf%40dod.no.
For more options, visit https://groups.google.com/d/optout.

Reply via email to