[jboss-jira] [JBoss JIRA] Updated: (JBMICROCONT-380) MC chooses the wrong constructor to build a bean from metadata
Ales Justin (JIRA)
jira-events at lists.jboss.org
Thu Nov 6 10:04:21 EST 2008
[ https://jira.jboss.org/jira/browse/JBMICROCONT-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ales Justin updated JBMICROCONT-380:
------------------------------------
JBoss Forum Reference: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187376#4187376 (was: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187325)
Old (EJB3/Embedded) forum link:
- http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187325
> MC chooses the wrong constructor to build a bean from metadata
> --------------------------------------------------------------
>
> Key: JBMICROCONT-380
> URL: https://jira.jboss.org/jira/browse/JBMICROCONT-380
> Project: JBoss Microcontainer
> Issue Type: Bug
> Affects Versions: JBossMC.2.0.0.CR5
> Reporter: Carlo de Wolf
> Priority: Critical
>
> Given the following piece of xml, MC can pick the wrong constructor to instantiate BeanMetaDataDeployer:
> <bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
> <constructor><parameter><inject bean="jboss.kernel:service=Kernel"/></parameter></constructor>
> </bean>
> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[org.jboss.dependency.spi.Controller] actual=[org.jboss.kernel.Kernel]
> at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
> at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
> at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
> at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
> at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:276)
> at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:97)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list