<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Emily,<br>
    <br>
    you can submit TCK challenges direcly by opening JIRA issues at
    <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/CDITCK">https://issues.jboss.org/browse/CDITCK</a>.<br>
    <br>
    As for this particular one I am not sure why the
    Contexts.getRequestContext() method is still used in the tests.
    BeanManager.getContext(RequestScoped.class) should IMHO be used
    instead.<br>
    <br>
    Jozef<br>
    <br>
    <div class="moz-cite-prefix">On 05/07/2015 01:50 PM, Emily Jiang
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAECq3A-NUfMAR3BSOwzDrBp_1Lj9-OcwAFsm-dNB6_bGgFcavg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div><br clear="all">
            </div>
            I am trying to run cdi 1.2 tck:<br>
            <table>
            </table>
            In test:
org.jboss.cdi.tck.tests.event.observer.conditional.ConditionalObserverTest<br>
            Method:
            testConditionalObserverMethodNotInvokedIfNoActiveContext
            <br>
            <br>
          </div>
          I got this following failure:<br>
          <table>
          </table>
          <span class="" style="font-size:10pt;font-family:Liberation
            Sans;color:rgb(26,26,26)">java.lang.IllegalStateException:
            Singleton not set for STATIC_INSTANCE =&gt;
            [29478a84-0d13-49f5-b140-34a6cd92ab71,
            0dd30cdc-10f4-4ec0-a8c5-d8fa3a82fc25,
            bbc59ac1-4747-49d0-96a3-12f0d4987829,
            3459400f-dd41-473c-a4db-94d60fe5899b,
            10795c17-3611-41d5-b7ca-497709c2ad53,
            f10c929f-5314-44ba-aeb4-99888f6b4611,
            a22c5a8f-bf26-4f54-a847-d1c7b5532426,
            00c3de8d-65d9-4ba7-804a-9c3c515e59d7,
            d7c8be7e-8b52-4c88-97e1-5ba6925fb794,
            72ac8455-7c21-4090-b7ec-13d70c75a7d7,
            dbe7255d-5485-4c2a-b547-058815660144,
            d3bb3d00-3214-48a5-b662-499010197e12]<br>
            at
org.jboss.weld.bootstrap.api.helpers.RegistrySingletonProvider$RegistrySingleton.get(RegistrySingletonProvider.java:28)<br>
            at org.jboss.weld.Container.instance(Container.java:55)<br>
            at
            org.jboss.weld.tck.ContextsImpl.getRequestContext(ContextsImpl.java:33)<br>
            at
            org.jboss.weld.tck.ContextsImpl.getRequestContext(ContextsImpl.java:30)<br>
            at
org.jboss.cdi.tck.tests.event.observer.conditional.ConditionalObserverTest.testConditionalObserverMethodNotInvokedIfNoActiveContext(ConditionalObserverTest.java:96)<br>
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
            Method)<br>
            <br>
             
          </span>From the stack trace, two strange things are happening:<br>
          <br>
          <span class="" style="font-size:10pt;font-family:Liberation
            Sans;color:rgb(26,26,26)">1) the TCK code is calling into
            org.jboss.weld.Container which is an internal Weld class
            which should not be visible to application so the
            application should not need to load them</span><br>
          <span class="" style="font-size:10pt;font-family:Liberation
            Sans;color:rgb(26,26,26)">2) the TCK code is calling
            Container.instance() with no arguments, which should not be
            called. We always use Container.instance(contextId), in
            accordance with Weld doc A.3.2.4. Singleton SPI</span> (this
          should be used in OSGi environment).<br>
          <br>
        </div>
        Can someone help to explain why the tck test was done this way?
        Is it accurate?<br clear="all">
        <div><br>
          -- <br>
          <div class="gmail_signature">Thanks<br>
            Emily<br>
            =================<br>
            Emily Jiang<br>
            <a moz-do-not-send="true" href="mailto:ejiang@apache.org"
              target="_blank">ejiang@apache.org</a><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
weld-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/weld-dev">https://lists.jboss.org/mailman/listinfo/weld-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>