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

ComponentDefinitionException message should contain actual class (interface) name instead of "ReferenceRecipe$ServiceProxyWrapper"

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Blueprint
    • Labels:
      None

      Description

      I made some mistake in looking up a <reference> via an interface and then passing that id as an <argument> to a <bean> which expected a concrete class implementing that interface, and thought that kind error message could be a lot more helpful if it contained the contain actual class (interface) names it was about instead of (literally) "ReferenceRecipe$ServiceProxyWrapper" :

      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a matching constructor on class org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataBrokerAdapter for arguments [org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper@3be77953 (class org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper), org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper@333e9ff0 (class org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper)] when instanciating bean tracingBindingDataBroker
      org.osgi.service.blueprint.container.ComponentDefinitionException: org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a matching constructor on class org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataBrokerAdapter for arguments [org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper@3be77953 (class org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper), org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper@333e9ff0 (class org.apache.aries.blueprint.container.ReferenceRecipe$ServiceProxyWrapper)] when instanciating bean tracingBindingDataBroker
       at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:310)
       at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252)
       at org.apache.aries.blueprint.container.ServiceRecipe.internalCreate(ServiceRecipe.java:149)
       at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
       at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255)
       at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186)
       at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:704)
       at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:410)
       at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:275)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
       at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)

       

      https://git.opendaylight.org/gerrit/#/c/72530/

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vorburger Michael Vorburger

              Dates

              • Created:
                Updated:

                Issue deployment