Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5393

java.lang.RuntimeException when resolving OSGi services compiled with Java 8 -parameters flag

    Details

    • Sprint:
      7.0 Sprint 1, Sprint 5 - towards ER2
    • Steps to Reproduce:
      Hide

      See private comment.

      Show
      See private comment .

      Description

      Resolving an OSGi service instance that was compiled using the -parameters flag on Java 8, results in java.lang.RuntimeException.

      Full stack trace:

      13:55:26,807 | ERROR | rint Extender: 2 | BlueprintContainerImpl           | 23 - org.apache.aries.blueprint.core - 1.4.4 | Unable to start blueprint container for bundle com.mycompany/test-rest/1.0.0.SNAPSHOT
      org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.RuntimeException
      	at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:123)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[23:org.apache.aries.blueprint.core:1.4.4]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_66]
      	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[23:org.apache.aries.blueprint.core:1.4.4]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_66]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_66]
      	at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[23:org.apache.aries.blueprint.core:1.4.4]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_66]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_66]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_66]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_66]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_66]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_66]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]
      Caused by: java.lang.RuntimeException
      	at org.objectweb.asm.MethodVisitor.visitParameter(Unknown Source)[16:org.objectweb.asm.all:5.0.3]
      	at org.objectweb.asm.ClassReader.b(Unknown Source)[16:org.objectweb.asm.all:5.0.3]
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)[16:org.objectweb.asm.all:5.0.3]
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)[16:org.objectweb.asm.all:5.0.3]
      	at org.apache.aries.proxy.impl.common.AbstractWovenProxyAdapter.readClass(AbstractWovenProxyAdapter.java:683)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.interfaces.InterfaceCombiningClassAdapter.generateBytes(InterfaceCombiningClassAdapter.java:109)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:156)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:95)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:75)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:40)[19:org.apache.aries.proxy.impl:1.0.4]
      	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:107)[23:org.apache.aries.blueprint.core:1.4.4]
      	... 19 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jpoth John Poth
                Reporter:
                mielket Torsten Mielke
                Tester:
                Matej Melko
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: