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

Blueprint proxying for java.* classes fails second time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1
    • 0.2
    • Blueprint
    • None

    Description

      When I restart a bundle containing a blueprint bean with some interceptors (so that it undergoes proxying) I get the following exception out of the ASM proxying code. This does not happen the very first time I start the bundle, but each subsequent time.

      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to proxy bean for interceptors: org.apache.aries.blueprint.proxy.UnableToLoadProxyException: java.lang.ClassNotFoundException: org.apache.aries.blueprint.proxy.java.util.$ArrayList573907509
      at org.apache.aries.blueprint.proxy.AsmInterceptorWrapper.createProxyObject(AsmInterceptorWrapper.java:148)
      at org.apache.aries.blueprint.container.BeanRecipe.addInterceptors(BeanRecipe.java:651)
      at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:697)
      at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
      at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)
      at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:624)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:315)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:453)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:315)
      at java.util.concurrent.FutureTask.run(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:110)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:219)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
      at java.lang.Thread.run(Thread.java:736)

      Attachments

        Activity

          People

            mahrwald Valentin Mahrwald
            mahrwald Valentin Mahrwald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: