Getting java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 in JSF
Issue
- Getting an intermittent issue in the JSF application deployed on Red Hat JBoss EAP 6.1.1 on a cluster where session replication and failover is involved:-
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/AAAA-sBBBB].[Faces Servlet]] (ajp-/0.0.0.0:8009-2) JBWEB000236: Servlet.service() for servlet Faces Servlet threw exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635) [rt.jar:1.7.0_55]
at java.util.ArrayList.get(ArrayList.java:411) [rt.jar:1.7.0_55]
at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:165) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1566) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
at com.sun.faces.application.view.FaceletPartialStateManagementStrategy$2.visit(FaceletPartialStateManagementStrategy.java:380) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
...
at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:91)
at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:72)
...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
