git.net

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

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


Michael Vorburger created ARIES-1808:
----------------------------------------

             Summary: 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
            Reporter: Michael Vorburger


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)



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-aries-development/msg01807.html on line 108
Call Stack
#TimeMemoryFunctionLocation
10.0008368920{main}( ).../msg01807.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-aries-development/msg01807.html on line 108
Call Stack
#TimeMemoryFunctionLocation
10.0008368920{main}( ).../msg01807.html:0