Artur Mioduszewski created SEAM-135:
---------------------------------------
Summary: <s:validateForm tag and <h:selectOneMenu with defined listener
problem
Key: SEAM-135
URL:
https://issues.jboss.org/browse/SEAM-135
Project: Seam 3 Distribution
Issue Type: Bug
Affects Versions: 3.1.0.Final
Environment: JDK1.6,
JBoss 6.0.Final,
richfaces 4.1.0.Final/4.2.0.Final
seam 3.1
IE 9, Chrome
Reporter: Artur Mioduszewski
When for <s:validateForm tag, <h:selectOneMenu component with defined listener is
passed java.lang.IndexOutOfBoundsException exception occurs.
Everything works fine if <h:selectOneMenu component has no defined listener.
{code:title="Error log from JBoss console"}
00:55:02,274 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/digital-signal-service6-dev].[default]]
Servlet.service() for servlet default threw exception:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547) [:1.6.0_24]
at java.util.ArrayList.get(ArrayList.java:322) [:1.6.0_24]
at
javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161)
[:2.0.3-]
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1428)
[:2.0.3-]
at javax.faces.component.UIOutput.restoreState(UIOutput.java:251) [:2.0.3-]
at javax.faces.component.UIInput.restoreState(UIInput.java:1374) [:2.0.3-]
at javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:117)
[:2.0.3-]
at
javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1639)
[:2.0.3-]
at
javax.faces.component.ComponentStateHelper.restoreState(ComponentStateHelper.java:290)
[:2.0.3-]
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1445)
[:2.0.3-]
at javax.faces.component.UIOutput.restoreState(UIOutput.java:251) [:2.0.3-]
at javax.faces.component.UIInput.restoreState(UIInput.java:1374) [:2.0.3-]
at
com.sun.faces.application.view.StateManagementStrategyImpl$1.visit(StateManagementStrategyImpl.java:242)
[:2.0.3-]
at
com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:147)
[:2.0.3-]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1476) [:2.0.3-]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1487) [:2.0.3-]
at
org.richfaces.component.AbstractTogglePanel.visitTree(AbstractTogglePanel.java:743)
[:4.2.1.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1487) [:2.0.3-]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1487) [:2.0.3-]
at javax.faces.component.UIForm.visitTree(UIForm.java:322) [:2.0.3-]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1487) [:2.0.3-]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1487) [:2.0.3-]
at
com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:234)
[:2.0.3-]
at
com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
[:2.0.3-]
at
com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:119)
[:2.0.3-]
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:438)
[:2.0.3-]
at
com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:144)
[:2.0.3-]
at
com.ocpsoft.pretty.faces.application.PrettyViewHandler.restoreView(PrettyViewHandler.java:103)
[:]
at
javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:284)
[:2.0.3-]
at
javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:284)
[:2.0.3-]
at
javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:284)
[:2.0.3-]
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:182)
[:2.0.3-]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-]
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
[:2.0.3-]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
[:2.0.3-]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)
[:6.0.0.Final]
at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:110) [:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at
pl.ITIGroup.digital.signal.web.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)
[:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at
pl.ITIGroup.digital.signal.web.common.filter.DevelopmentFilter.doFilter(DevelopmentFilter.java:60)
[:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[:6.0.0.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[:6.0.0.Final]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
[:6.0.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
[:1.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
[:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
[:6.0.0.Final]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
[:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[:6.0.0.Final]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[:6.0.0.Final]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[:6.0.0.Final]
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
[:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[:6.0.0.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
[:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
[:6.0.0.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
<code>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira