[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1338) Type Mismatch in Injection
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Wed May 7 10:26:20 EDT 2008
[ http://jira.jboss.com/jira/browse/EJBTHREE-1338?page=comments#action_12412009 ]
Scott M Stark commented on EJBTHREE-1338:
-----------------------------------------
The annotatedRefs exist, and the
AnnotatedEJBReferenceMetaData{name=home,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface org.jboss.ejb3.test.ejbthree1154.TestLocalHome}
gets mapped to TestBean, but the jndi name for the 'container' is seen to be ejbthree1154/TestBean/remote. This is because the MappedReferenceMetadataDeployer is trying to guess what the correct name is. We need the JBossEnterpriseBeanMetaData.getResolvedJndiName(String iface) addition described in JBMETA-35 so that resolution and proxy binding behavior is consistent and in one place.
> Type Mismatch in Injection
> --------------------------
>
> Key: EJBTHREE-1338
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-1338
> Project: EJB 3.0
> Issue Type: Bug
> Components: core
> Reporter: Andrew Lee Rubinger
> Assigned To: Scott M Stark
> Priority: Blocker
> Fix For: AS 5.0.0.CR1
>
>
> As shown from ejbthree1154 Test Client:
> Caused by: java.lang.RuntimeException: Non matching type for inject of field: private org.jboss.ejb3.test.ejbthree1154.TestLocalBusiness org.jboss.ejb3.test.ejbthree1154.DelegateBean.localBusiness for type: $Proxy100 of jndiName env/org.jboss.ejb3.test.ejbthree1154.DelegateBean/localBusiness
> intfs: , org.jboss.ejb3.proxy.JBossProxy, org.jboss.ejb3.test.ejbthree1154.TestRemoteBusiness
> at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjector.java:117)
> at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjector.java:95)
> at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjector.java:63)
> at org.jboss.ejb3.pool.AbstractPool.create(AbstractPool.java:104)
> at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:56)
> at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:51)
> at org.jboss.ejb3.pool.ThreadlocalPool.create(ThreadlocalPool.java:53)
> at org.jboss.ejb3.pool.ThreadlocalPool.get(ThreadlocalPool.java:93)
> at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:58)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list