Hi Martin, Is it perhaps related to JavaEE related packages that have been put in separate (deprecated) modules in Java 9, which have been removed in Java 11?
Regards, Arnoud -----Original Message----- From: Martin Petzold [mailto:[email protected]] Sent: Monday, 25 November, 2019 14:33 To: [email protected] Subject: Re: java.lang.IllegalArgumentException with Blueprint Core 1.10.2 It worked on Java 1.8. However, on Java 11 I now get the following error: 2019-11-25 14:29:39.711 WARN org.glassfish.jersey.internal.Errors - The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.message.internal.DataSourceProvider] with an exception: MultiException stack 1 of 2 java.lang.NoClassDefFoundError: javax/activation/DataSource at java.base/java.lang.Class.getDeclaredConstructors0(Native Method) at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137) at java.base/java.lang.Class.getDeclaredConstructors(Class.java:2357) at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1378) at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1374) ... Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource cannot be found by technology.tavla.misc.web_1.0.0.201910301452 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:514) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:425) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) MultiException stack 2 of 2 java.lang.IllegalArgumentException: Errors were discovered while reifying SystemDescriptor( implementation=org.glassfish.jersey.message.internal.DataSourceProvider contracts={javax.ws.rs.ext.MessageBodyReader,javax.ws.rs.ext.MessageBodyWriter} scope=javax.inject.Singleton qualifiers={} descriptorType=CLASS descriptorVisibility=NORMAL metadata= rank=0 loader=null proxiable=null proxyForSameScope=null analysisName=null id=106 locatorId=1 identityHashCode=283453992 reified=false) at org.jvnet.hk2.internal.SystemDescriptor.reify(SystemDescriptor.java:705) at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:464) at org.jvnet.hk2.internal.ServiceLocatorImpl.narrow(ServiceLocatorImpl.java:2310) at org.jvnet.hk2.internal.ServiceLocatorImpl.access$1200(ServiceLocatorImpl.java:128) at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1395) at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1390) at org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl.compute(WeakCARCacheImpl.java:128) at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetAllServiceHandles(ServiceLocatorImpl.java:1452) Am 25.11.19 um 14:23 schrieb Jean-Baptiste Onofré: > Does it work with those bundles ? > > Regards > JB > > On 25/11/2019 14:05, Martin Petzold wrote: >> Working with: >> >> asm-7.2.jar >> asm-analysis-7.2.jar >> asm-commons-7.2.jar >> asm-tree-7.2.jar >> asm-util-7.2.jar >> >> Am 25.11.19 um 13:53 schrieb Martin Petzold: >>> Hi JB, >>> >>> thanks, can you tell me the exact bundle? >>> >>> Kind regards, >>> >>> Martin >>> >>> Am 25.11.19 um 13:47 schrieb Jean-Baptiste Onofré: >>>> Hi Martin, >>>> >>>> Can you please try with ASM 7.2 ? Especially if you try to use JDK 9+, >>>> you have to use ASM 7.2. >>>> >>>> We are using Blueprint Core 1.10.2 in Karaf without problem up to now. >>>> >>>> Regards >>>> JB >>>> >>>> On 25/11/2019 13:26, Martin Petzold wrote: >>>>> Dear all, >>>>> >>>>> I switched from Blueprint Core 1.8.2 to 1.10.2. The reason is that I >>>>> had >>>>> some errors switching from Java 1.8 to Java 11. Now I get an Exception: >>>>> >>>>> org.osgi.service.blueprint.container.ComponentDefinitionException: >>>>> java.lang.IllegalArgumentException >>>>> at >>>>> org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:141) >>>>> >>>>> >>>>> >>>>> ... >>>>> Caused by: java.lang.IllegalArgumentException: null >>>>> at org.objectweb.asm.ClassVisitor.<init>(ClassVisitor.java:79) >>>>> >>>>> I am using most recent Equinox OSGi implementation with custom launcher >>>>> and a selected bundle set. The OLD BUNDLE run well since months! >>>>> >>>>> -> What can I do? >>>>> >>>>> --- NEW BUNDLES >>>>> >>>>> org.apache.aries.blueprint.api-1.0.1.jar >>>>> org.apache.aries.blueprint.core-1.10.2.jar >>>>> org.apache.aries.proxy-1.1.6.jar >>>>> org.apache.aries.proxy.api-1.1.0.jar >>>>> org.apache.aries.quiesce.api-1.0.0.jar >>>>> org.apache.aries.spifly.dynamic.bundle-1.2.3.jar >>>>> org.apache.aries.util-1.1.3.jar >>>>> asm-debug-all-5.2.jar >>>>> >>>>> --- OLD BUNDLES >>>>> >>>>> org.apache.aries.blueprint.api-1.0.1.jar >>>>> org.apache.aries.blueprint.core-1.8.2.jar >>>>> org.apache.aries.proxy-1.1.1.jar >>>>> org.apache.aries.proxy.api-1.1.0.jar >>>>> org.apache.aries.quiesce.api-1.0.0.jar >>>>> org.apache.aries.spifly.dynamic.bundle-1.0.8.jar >>>>> org.apache.aries.util-1.1.3.jar >>>>> asm-debug-all-5.0.3.jar >>>>> >>>>> --- >>>>> >>>>> Thanks and kind regards, >>>>> >>>>> Martin >>>>> ------------------------------------------------------------------------------------------------------------ Disclaimer: This e-mail and its content is strictly intended for the addressee and may contain sensitive and restricted information. If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578. ------------------------------------------------------------------------------------------------------------
