Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.1
-
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?