<font size=2 face="sans-serif">Hello<br>
<br>
I've been seeing probe not initalized exceptions that occur on CDI 2.0
but not CDI 1.2, from what I can see when I debug into the issue the problem
occurs in TransactionalObserverNotifier(ObserverNotifier).notifySyncObservers</font>
<br>
<br><font size=2 face="sans-serif">In CDI 1.2 I see that the the ArrayList
observers has two entries, the first being </font><font size=2 face="Monospace">ProbeExtension.afterDeploymentValidation</font>
<br>
<br><font size=2 face="sans-serif">In CDI 2.0 I see four entries, with
the first being </font><font size=2 face="Monospace">org.apache.myfaces.cdi.config.FacesConfigExtension</font><font size=2 face="sans-serif"><br>
<br>
And when the afterDeploymentValidation method of </font><font size=2 face="Monospace">FacesConfigExtension</font><font size=2 face="sans-serif">
is called the result is </font><font size=2 face="Monospace">org.jboss.weld.exceptions.IllegalStateException:
PROBE-000005: Probe is not properly initialized. I've attached a stack
from that error: <br>
<br>
</font>
<br><font size=2 face="Monospace">And the source is on github: </font><a href=https://github.com/apache/myfaces/blob/master/impl/src/main/java/org/apache/myfaces/cdi/config/FacesConfigExtension.java><font size=2 color=blue face="Monospace">https://github.com/apache/myfaces/blob/master/impl/src/main/java/org/apache/myfaces/cdi/config/FacesConfigExtension.java</font></a>
<br>
<br><font size=2 face="Monospace">So what are the options here? I don't
see anything under </font><a href="http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#after_deployment_validation"><font size=2 color=blue face="Monospace">http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#after_deployment_validation</font></a><font size=2 face="Monospace">
saying that you shouldn't invoke beans during after deployment validation
observers. A bit earlier in 11.5 it says &quot;If other beans are injected
into an extension’s observer methods, non-portable behavior results&quot;
but it's not clear if that refers to using the injected bean manager to
lookup a bean. <br>
<br>
Presumably if weld-probe needs to run first there's some code to ensure
it does? Do we need to do something to integrate with that code, or avoid
integrating myfaces?<br>
<br>
Regards<br>
Benjamin &nbsp;</font><font size=2 face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>