git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Updated] (ARIES-1808) ComponentDefinitionException message should contain actual class (interface) name instead of "ReferenceRecipe$ServiceProxyWrapper"


     [ https://issues.apache.org/jira/browse/ARIES-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grzegorz Grzybek updated ARIES-1808:
------------------------------------
    Component/s: Blueprint

> ComponentDefinitionException message should contain actual class (interface) name instead of "ReferenceRecipe$ServiceProxyWrapper"
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1808
>                 URL: https://issues.apache.org/jira/browse/ARIES-1808
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>            Reporter: Michael Vorburger
>            Priority: Major
>
> 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" :
> {noformat}
> 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){noformat}
>  
> https://git.opendaylight.org/gerrit/#/c/72530/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)