Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23771

[GSS](7.4.z) JSF AttachedObjectListHolder IndexOutOfBounds fix #4260

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.7.CR1, 7.4.7.GA
    • 7.4.5.GA
    • JSF
    • None

      EAP needs a fix to address an IndexOutOfBoundsException that can occur in the RESTORE_VIEW phase as in https://github.com/eclipse-ee4j/mojarra/issues/4260

      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
      at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
      at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
      at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
      at java.base/java.util.Objects.checkIndex(Objects.java:372)
      at java.base/java.util.ArrayList.get(ArrayList.java:459)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:146)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1228)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.application.view.FaceletPartialStateManagementStrategy$2.visit(FaceletPartialStateManagementStrategy.java:372)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:127)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponent.visitTree(UIComponent.java:1456)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponent.visitTree(UIComponent.java:1468)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIForm.visitTree(UIForm.java:347)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponent.visitTree(UIComponent.java:1468)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponent.visitTree(UIComponent.java:1468)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponent.visitTree(UIComponent.java:1468)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.component.UIComponent.visitTree(UIComponent.java:1468)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.application.view.FaceletPartialStateManagementStrategy.restoreView(FaceletPartialStateManagementStrategy.java:358)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:113)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:99)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:272)
      at com.sun.jsf-impl@2.3.14.SP04-redhat-00001//com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:133)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:101)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:101)
      at javax.faces.api@3.0.0.SP04-redhat-00001//javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:101)
      

      We need to backport https://github.com/eclipse-ee4j/mojarra/pull/5102

              rhn-engineering-lgao Lin Gao
              rhn-support-aogburn Aaron Ogburn
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: