Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1860

Dynamic Spifly fails on java 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • spifly-1.1
    • spifly-1.2
    • SPI Fly
    • None

    Description

      I've upgraded to spifly 1.1, due as suggested on https://issues.apache.org/jira/browse/ARIES-1844

      But when running tests, it still fails due to TCCLSetterVisitor still using ASM5:

       

      Problem can be re-produced via:

      1. git clone https://github.com/DozerMapper/dozer.git
      2. mvn clean install -DskipTests
      3. mvn clean install -Dtest=Proto3KarafContainerTest#canResolveProtobufSupportModule

      Protobuf tests will fail with exception:

      [ERROR] canResolveProtobufSupportModule(com.github.dozermapper.osgitests.Proto3KarafContainerTest) Time elapsed: 123.448 s <<< ERROR!
      java.lang.UnsupportedOperationException: This feature requires ASM7
       at org.objectweb.asm.ClassVisitor.visitNestMember(ClassVisitor.java:236)
       at org.objectweb.asm.ClassReader.accept(ClassReader.java:651)
       at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
       at org.apache.aries.spifly.dynamic.ClientWeavingHook.weave(ClientWeavingHook.java:60)
       at org.apache.felix.framework.util.SecureAction.invokeWeavingHook(SecureAction.java:1203)
       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.transformClass(BundleWiringImpl.java:2465)
       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2152)
       at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1607)
       at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
       at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
       at com.github.dozermapper.core.cache.DefaultCacheManager.putCache(DefaultCacheManager.java:67)
       at com.github.dozermapper.core.DozerBeanMapperBuilder.getCacheManager(DozerBeanMapperBuilder.java:700)
       at com.github.dozermapper.core.DozerBeanMapperBuilder.build(DozerBeanMapperBuilder.java:555)
       at com.github.dozermapper.osgitests.Proto3KarafContainerTest.canResolveProtobufSupportModule(Proto3KarafContainerTest.java:87)
       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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
       at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
       at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
       at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
       at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
       at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
       at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runLeafWithRetry(ContainerTestRunner.java:97)
       at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChildWithRetry(ContainerTestRunner.java:84)
       at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:75)
       at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:43)
       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
       at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
       at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
       at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:124)
       at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:97)
       at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
       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.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:85)
       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 java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
       at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
       at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
       at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
       at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
       at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.lang.Thread.run(Thread.java:834)
      

       

       

       

      Attachments

        Activity

          People

            rotty3000 Raymond Augé
            garethahealy Gareth Healy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: