Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3627

Unable to inject the intercepted bean to an interceptor of a session bean

    XMLWordPrintable

    Details

      Description

      This attempt fails with:

      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
      

      There's available expanded org.jboss.cdi.tck.tests.implementation.builtin.metadata.BuiltinMetadataBeanTest in TCK master branch.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                tremes Tomas Remes
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: