Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4587

Intermittent deployment error on WildFly 27

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.1
    • General
    • None
    • Windows 10, WildFly 27.0.1

    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&gt;jakarta.faces.webapp.FacesServlet</servlet-class&gt;
              <load-on-startup>1</load-on-startup>
          </servlet>

      Thank you very much in advance!

      Attachments

        1. stacktrace.txt
          14 kB
          Manuel K

        Activity

          People

            tandraschko Thomas Andraschko
            mkomko Manuel K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: