<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks Stuart and Bruno! Stuart, your suggestion works indeed!! Pete
    had some recommendations as well and it now seems like this issue
    has been resolved!<br>
    <br>
    Much appreciated everyone,<br>
    Vladimir<br>
    On 12-03-28 9:48 PM, Stuart Douglas wrote:
    <blockquote
      cite="mid:946B8761-C548-42A9-BA04-EBB3812E3494@redhat.com"
      type="cite">This issue is
      in&nbsp;org.infinispan.cdi.CDIDistributedTaskLifecycle&nbsp;
      <div><br>
      </div>
      <div>This class is re-used for both tests, however it only gets
        the current bean manager once at creation time, so the second
        test is run against the first tests (closed) bean manager.&nbsp;</div>
      <div><br>
      </div>
      <div>Using&nbsp;InfinispanExtension.getExtension().getRegisteredBeanManager()
        to get the bean manager each time allows the tests to pass.</div>
      <div><br>
      </div>
      <div>Stuart</div>
      <div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
          <div>
            <div>On 29/03/2012, at 7:56 AM, Bruno Georges wrote:</div>
            <br class="Apple-interchange-newline">
            <blockquote type="cite">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space; ">adding
                Stuart<br>
                <div>
                  <div>On 29 Mar 2012, at 08:23, Vladimir Blagojevic
                    wrote:</div>
                  <br class="Apple-interchange-newline">
                  <blockquote type="cite">
                    <meta http-equiv="content-type" content="text/html;
                      charset=ISO-8859-1">
                    <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,<br>
                        <br>
                        I think I have a decent solution for testing of
                        distributed execution and CDI in the place now.
                        Galder helped out a lot! However, I still can
                        not bridge the last remaining mystery: I have
                        two tests WordCountMapReduceCDITest and
                        DistributedExecutorCDITest. When both tests are
                        enabled </tt><tt>WordCountMapReduceCDITest
                        fails as it is run second. If only either one of
                        the tests is enabled - everything works as
                        expected.<br>
                        <br>
                        Pick up pull request at <a
                          moz-do-not-send="true"
                          class="moz-txt-link-freetext"
                          href="https://github.com/infinispan/infinispan/pull/982">https://github.com/infinispan/infinispan/pull/982</a>
                        , first maven install core and then proceed to
                        cdi/extension to give test suite a run. You can
                        see the root of the failure in surefire reports.
                        Weld somehow cannot resolve bean passed to
                        InjectionTarget inject method. <br>
                        <br>
                        Much appreciated,<br>
                        Vladimir<br>
                        <br>
                      </tt>
                      <meta http-equiv="content-type"
                        content="text/html; charset=ISO-8859-1">
                      <pre>Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001324 Argument bean must not be null
        at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:657)
        at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
        at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
        at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
        at org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:106)
        at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
        at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:102)
        at org.infinispan.cdi.CDIDistributedTaskLifecycle.onPreExecute(CDIDistributedTaskLifecycle.java:46)
        at org.infinispan.distexec.spi.DistributedTaskLifecycleService.onPreExecute(DistributedTaskLifecycleService.java:80)
        at org.infinispan.commands.read.MapReduceCommand.perform(MapReduceCommand.java:144)</pre>
                      <tt>&nbsp;<br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                      </tt> </div>
                    _______________________________________________<br>
                    infinispan-dev mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
                    <a moz-do-not-send="true"
                      href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote>
                </div>
                <br>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>