1 Reply Latest reply on Dec 3, 2009 3:59 AM by ramy Hassan

    Weird Exception when Session is timed out <java.util.NoSuchE

    ramy Hassan Novice

      I'm Using JSF 1.2 with rich faces components

      I've a page that contains selectOneMenu and some textfields

      <h:selectOneMenu id="sCListBox"
      style="width:150px"
      value="#{ManagedBean.selectedSC}">
      
      <f:selectItem id="sCFirstItem"
      itemLabel="Select" />
      
      <f:selectItems id="sCO"
      value="#{ManagedBean.sC}" />
      <a4j:support event="onchange"
      actionListener="#{ManagedBean.showOptions}"
      reRender="leftTopPanelOSB,ButtomPanelOSB,bucketTableOSB,viewMsg" ajaxSingle="true" />
      </h:selectOneMenu>


      It sends Ajax request with the selected value and get the response to change values of these components
      < leftTopPanelOSB,ButtomPanelOSB,bucketTableOSB,viewMsg >


      When session is timed out and try to select from the list again:
      I got this Exception:

      com.sun.faces.lifecycle.ProcessValidationsPhase execute
      WARNING: java.util.NoSuchElementException
      javax.faces.FacesException: java.util.NoSuchElementException
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:675)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:647)
       at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:242)
       at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:455)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       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.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.tvas.webcc.filters.ClientRequestFilter.doFilter(ClientRequestFilter.java:69)
       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:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      Nov 18, 2009 1:22:52 PM com.sun.faces.lifecycle.LifecycleImpl phase
      WARNING: executePhase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@6326e5) threw exception
      javax.faces.FacesException: java.util.NoSuchElementException
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       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.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.tvas.webcc.filters.ClientRequestFilter.doFilter(ClientRequestFilter.java:69)
       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:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)


      I did not find any solution for this problem