Details
Description
When deploying our JSF application using MyFaces on WildFly 27.0.1, we intermittently get the following exception:
org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: Argument bean must not be null
I have attached the full stack trace.
Debugging leads me to CDIUtils#get, where the following statement returns an empty set:
bm.getBeans(clazz); // clazz is ClientWindowScopeContextualStorageHolder
It doesn't happen on every deployment but too often to ignore. Do you have any insight on this?
It happens whether org.apache.myfaces.annotation.USE_CDI_FOR_ANNOTATION_SCANNING is true or false (just a wild experiment) and the following in the web.xml (another wild experiment):
<servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet>
Thank you very much in advance!