[jboss-jira] [JBoss JIRA] (WFLY-3627) Unable to inject the intercepted bean to an interceptor of a session bean

Martin Kouba (JIRA) issues at jboss.org
Tue Jul 15 03:16:32 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-3627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kouba moved WELD-1705 to WFLY-3627:
------------------------------------------

              Project: WildFly  (was: Weld)
                  Key: WFLY-3627  (was: WELD-1705)
    Affects Version/s: 8.1.0.Final
                           (was: 2.2.3.Final)


> Unable to inject the intercepted bean to an interceptor of a session bean
> -------------------------------------------------------------------------
>
>                 Key: WFLY-3627
>                 URL: https://issues.jboss.org/browse/WFLY-3627
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 8.1.0.Final
>            Reporter: Tomas Remes
>            Assignee: Martin Kouba
>
> This attempt fails with:
> {noformat}
> Caused by: java.lang.IllegalArgumentException: Unable to inject Session bean [class org.jboss.cdi.tck.tests.implementation.builtin.metadata.FatYoghurt with qualifiers [@Any @Default]; local interfaces are [FatYoghurt] into [BackedAnnotatedField] @Inject private org.jboss.cdi.tck.tests.implementation.builtin.metadata.YoghurtInterceptor.interceptor
> 	at org.jboss.weld.bean.builtin.InterceptorMetadataBean.newInstance(InterceptorMetadataBean.java:53) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.bean.builtin.InterceptorMetadataBean.newInstance(InterceptorMetadataBean.java:41) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.bean.builtin.AbstractBuiltInMetadataBean.create(AbstractBuiltInMetadataBean.java:57) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:740) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:831) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:365) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:376) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:70) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:65) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:109) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:150) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69) [weld-core-impl-2.2.2.Final.jar:2014-06-27 08:57]
> 	at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.addInterceptorInstance(Jsr299BindingsCreateInterceptor.java:58) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]
> 	at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:87) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]
> 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> 	at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> 	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]
> 	... 167 more
> {noformat}
> There's available expanded org.jboss.cdi.tck.tests.implementation.builtin.metadata.BuiltinMetadataBeanTest in TCK master branch. 



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list