[arquillian-issues] [JBoss JIRA] (ARQ-1458) Arquilian tests failed with RuntileException Could not inject members

Cleverson Sacramento (JIRA) jira-events at lists.jboss.org
Wed Sep 11 07:10:03 EDT 2013


    [ https://issues.jboss.org/browse/ARQ-1458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803450#comment-12803450 ] 

Cleverson Sacramento edited comment on ARQ-1458 at 9/11/13 7:08 AM:
--------------------------------------------------------------------

This bug was introduced by ARQ-1071 in 1.0.4.Final and persists in current version (1.1.1.Final). The reason is that all ThreadLocal occurences was replaced by InheritableThreadLocal to fix a NPE on @Timeout usages.

The proposed fix consists on revert just one occurence of InheritableThreadLocal to ThreadLocal like it has been done on following Pull Request:
https://github.com/arquillian/arquillian-core/pull/53
                
      was (Author: cleverson.sacramento):
    This bug was introduced by ARQ-1071 (https://issues.jboss.org/browse/ARQ-1071) in 1.0.4.Final and persists in current version (1.1.1.Final). The reason is that all ThreadLocal occurences was replaced by InheritableThreadLocal to fix a NPE on @Timeout usages.

The proposed fix consists on revert just one occurence of InheritableThreadLocal to ThreadLocal like it has been done on following Pull Request:
https://github.com/arquillian/arquillian-core/pull/53
                  
> Arquilian tests failed with RuntileException Could not inject members
> ---------------------------------------------------------------------
>
>                 Key: ARQ-1458
>                 URL: https://issues.jboss.org/browse/ARQ-1458
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.4.Final, 1.1.0.Final, 1.1.1.Final
>         Environment: Linux, JEE6, Embedded Glassfish 3.1.1, JPA, CDI, Arquilian 1.0.4 & Arquilian 1.1.0
>            Reporter: Thomas Lallart
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list