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

Quarkus: Native compilation can't find key attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 4.0.2, 4.1.0-RC1
    • Extension Feature
    • None

    Description

      Running integration tests for OmniFaces the tests pass in JVM mode but fail in Native mode with this error.

       

      org.apache.myfaces.view.facelets.el.ContextAwarePropertyNotFoundException: jakarta.el.PropertyNotFoundException: The class 'org.apache.myfaces.util.lang.AbstractThreadSafeAttributeMap$EntrySetEntry' does not have the property 'key'.
      766	at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:104)
      767	at org.apache.myfaces.view.facelets.el.ELText$ELTextVariable.writeText(ELText.java:238)
      768	at org.apache.myfaces.view.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
      769	at org.apache.myfaces.view.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:46)
      770	at org.apache.myfaces.view.facelets.compiler.UILeaf.encodeAll(UILeaf.java:362)
      771	at org.apache.myfaces.view.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:78)
      772	at org.apache.myfaces.view.facelets.component.UIRepeat.process(UIRepeat.java:1056)
      773	at org.apache.myfaces.view.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:1698) 

      Basically the XML page has this just to print out the Session Scope

      <h3>Session Scope</h3>
      <table>
          <ui:repeat value="#{sessionScope}" var="s">
              <tr>
                  <td>#{s.key}</td>
                  <td>#{s.value}</td>
              </tr>
          </ui:repeat>
      </table> 

      And my guess is the Native compilation needs to be aware of `org.apache.myfaces.util.lang.AbstractThreadSafeAttributeMap$EntrySetEntry` or exposed somehow as it must be getting compiled out?

      Attachments

        Activity

          People

            melloware Melloware
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: