Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4919

seam-ui example java.lang.IndexOutOfBoundsException in restoreState

    Details

    • Steps to Reproduce:
      Hide

      1. Build and deploy the examples-ee6/ui example
      2. Go to http://127.0.0.1:8080/seam-ui
      3. click on s:validateEquality(2)
      4. enter some same dates
      5. click "Check Dates"
      6. click "Check Dates" again
      7. Notice the error

      Show
      1. Build and deploy the examples-ee6/ui example 2. Go to http://127.0.0.1:8080/seam-ui 3. click on s:validateEquality(2) 4. enter some same dates 5. click "Check Dates" 6. click "Check Dates" again 7. Notice the error
    • Affects:
      Release Notes

      Description

      In the seam-ui example, a debug page is shown

      Exception during request processing:
      Caused by javax.servlet.ServletException with message: "Index: 1, Size: 1"
      
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
      org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
      java.lang.Thread.run(Thread.java:662)
      
      Caused by java.lang.IndexOutOfBoundsException with message: "Index: 1, Size: 1"
      
      java.util.ArrayList.RangeCheck(ArrayList.java:547)
      java.util.ArrayList.get(ArrayList.java:322)
      javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:165)
      javax.faces.component.UIInput.restoreState(UIInput.java:1411)
      com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:264)
      com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1612)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
      javax.faces.component.UIForm.visitTree(UIForm.java:371)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
      javax.faces.component.UIComponent.visitTree(UIComponent.java:1623)
      com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:251)
      com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188)
      org.jboss.seam.jsf.SeamStateManager.restoreView(SeamStateManager.java:76)
      com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
      com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453)
      com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:142)
      org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:94)
      com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
      com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
      org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
      java.lang.Thread.run(Thread.java:662)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  maschmid Marek Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: