Hi, If you can send a reproducer project which I can build and run to reproduce this problem, I will take a close look.
Cheers ------------- Freeman(Yue) Fang Red Hat, Inc. > On Jun 7, 2019, at 4:17 PM, Steinar Bang <s...@dod.no> wrote: > >>>>>> Freeman Fang <freeman.fang-re5jqeeqqe8avxtiumw...@public.gmane.org>: > >> Hi Steinar, >> Good catch, and this is a known issue in >> https://bugs.eclipse.org/bugs/show_bug.cgi?id=515286 >> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=515286> > >> And this issue has already been fixed. > > Thanks for the info! Good to hear! :-) > >> To run your test with JDK11+eclipse, I think you should use > >> <dependency> >> <groupId>org.eclipse.tycho</groupId> >> <artifactId>org.eclipse.osgi</artifactId> >> <version>3.13.0.v20180226-1711</version> >> </dependency> >> Which contains the fix. > > No luck, unfortunately. > > I get a different stack trace, but it still fails: > > [org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for > remote bundle context.. on 21000 name: 8b9e87d5-afb6-440e-8231-83de5e653557 > timout: [ RelativeTimeout value = 720000 ] > Jun 07, 2019 10:15:23 PM 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:3078) > at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) > at org.apache.karaf.main.Main.installAndStartBundles(Main.java:523) > ... 6 more > Caused by: java.lang.UnsupportedOperationException: Unable to add extension > bundle to FrameworkClassLoader - Maybe not an URLClassLoader? > at > org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:453) > at org.apache.felix.framework.Felix.installBundle(Felix.java:3044) > ... 8 more > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - ops4j@googlegroups.com > > --- > 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 ops4j+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ops4j/86imthgnfa.fsf%40dod.no. > For more options, visit https://groups.google.com/d/optout. -- -- ------------------ OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- 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 ops4j+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/CB002CA8-F10D-42A3-82CE-B4D24A1A14C0%40gmail.com. For more options, visit https://groups.google.com/d/optout.