Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1458

Arquilian tests failed with RuntileException Could not inject members

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.3.Final
    • 1.0.4.Final, 1.1.0.Final, 1.1.1.Final
    • None
    • None
    • Hide

      Writing some class tests with some tests with CDI and with Arquilian 1.0.4+ (runs well on Arquilian 1.0.3).

      Show
      Writing some class tests with some tests with CDI and with Arquilian 1.0.4+ (runs well on Arquilian 1.0.3).

      When running more integration tests with Arquilian on Embedded Glassfish, some tests failed with message :

      java.lang.RuntimeException: Could not inject members
      at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.injectClass(CDIInjectionEnricher.java:135)
      at org.jboss.arquillian.testenricher.cdi.CDIInjectionEnricher.enrich(CDIInjectionEnricher.java:78)
      at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
      ...
      Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null
      at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:744)
      at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
      at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:872)
      at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:884)
      at org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:120)

      See also https://community.jboss.org/message/830718

            Unassigned Unassigned
            tlallart Thomas Lallart (Inactive)
            Votes:
            19 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: