3 Replies Latest reply on Apr 5, 2007 5:05 PM by Sundeep Kadakia

    Ajax4JSF - org.apache.commons.collections.UnboundedFifoBuffe

    Sundeep Kadakia Newbie

      Hi All,

      It would be great help if you can help me resolve this issue. When I use Ajax4JSF filters in web.xml, I get this exception when I click on the (search) command button.

      I am in the proces of applying Ajax and RichFaces to the JSF app, but cannot get further due to the error, stack trace is shown below:

      Truly appreciate your help.

      Thanks.

      Sundeep

      Here is the index.jsp code:

      <f:view>
      <%@include file="jspf/topmenu.jsp"%>
      <h:form id="searchForm">

      <h:panelGrid columnClasses="body"
      columns="3"
      styleClass="pageWidth">

      <h:inputText id="keywords" value="#{searchBB.keyWords}" maxlength="200" size="80" required="true"/>
      <h:selectOneMenu id="categoryType" value="#{searchBB.category.categoryId}">
      <f:selectItems value="#{searchBB.categories}"/>
      </h:selectOneMenu>
      <h:commandButton id="searchNow" value="#{messages.searchLabel}" action="#{searchBB.search}"/>
      </h:panelGrid>

      </h:form>
      <%@ include file="jspf/footer.jsp" %>
      </f:view>

      12:55:48,815 WARN [lifecycle] org.apache.commons.collections.UnboundedFifoBuffer
      java.lang.ArrayStoreException: org.apache.commons.collections.UnboundedFifoBuffer
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.clearEvents(AjaxViewRoot.java:243)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEvents(AjaxViewRoot.java:223)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEventsQueue(AjaxViewRoot.java:215)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.queueEvent(AjaxViewRoot.java:134)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UICommand.queueEvent(UICommand.java:405)
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.decode(ButtonRenderer.java:104)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:774)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:994)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:989)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:989)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
      at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
      at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:447)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      at java.lang.Thread.run(Thread.java:595)
      12:55:48,820 WARN [lifecycle] executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@10540f) threw exception
      javax.faces.FacesException: org.apache.commons.collections.UnboundedFifoBuffer
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:447)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.ArrayStoreException: org.apache.commons.collections.UnboundedFifoBuffer
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.clearEvents(AjaxViewRoot.java:243)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEvents(AjaxViewRoot.java:223)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEventsQueue(AjaxViewRoot.java:215)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.queueEvent(AjaxViewRoot.java:134)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UICommand.queueEvent(UICommand.java:405)
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.decode(ButtonRenderer.java:104)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:774)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:994)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:989)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:989)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
      at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
      at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
      ... 25 more
      12:55:48,828 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      java.lang.ArrayStoreException: org.apache.commons.collections.UnboundedFifoBuffer
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.clearEvents(AjaxViewRoot.java:243)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEvents(AjaxViewRoot.java:223)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.getEventsQueue(AjaxViewRoot.java:215)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.queueEvent(AjaxViewRoot.java:134)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UIComponentBase.queueEvent(UIComponentBase.java:962)
      at javax.faces.component.UICommand.queueEvent(UICommand.java:405)
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.decode(ButtonRenderer.java:104)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:774)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:994)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:989)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:989)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
      at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
      at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:447)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      at java.lang.Thread.run(Thread.java:595)