Radio Buttons Auto-Submit on change throws IndexOutOfBoundsException

Hi

On my page I have 2 radio buttons with Auto-submit on change activated for the 2 radio buttons, if any of the 2 radio button is check its sets some values picked from the database to some static text components,the logic is working fine but after clicking any of the radio button alternatively for some time it throws an IndexOutOfBoundsException, here is the error page below:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Index: 0, Size: 0

javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)

com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

root cause

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

java.util.ArrayList.RangeCheck(ArrayList.java:547)

java.util.ArrayList.remove(ArrayList.java:387)

javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:253)

javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)

com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase .java:79)

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)

com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

[1592 byte] By [JohnnyFlipa] at [2007-11-27 8:10:51]
# 1

This looks like simultaneous access from multiple threads active in the CachedRowSet instance at the same time, generated in this case by toggling the radio buttons rapidly enough to generate this state.

This is inherent in the JSF implementation. A workaround would be to change component state saving from client side to server side if this is acceptable for the application.

utsukushiia at 2007-7-12 19:54:36 > top of Java-index,Development Tools,Java Tools...
# 2
Thanks for your response but uptill now I'm yet to know how to change the component state saving from Client side to Sever side,I've been searching the web hoping to get a meaningful tip but nothing, can u help me out there.
JohnnyFlipa at 2007-7-12 19:54:36 > top of Java-index,Development Tools,Java Tools...