I do have selectOneMenus, but I have a standard method to populate them and all the data is pulled from the database. so, if there was a wrong value, this exception will occur for lots of users. But it happens once in a while. But I suppose, I can still look into my code and data and see if that is the cause. I will check for the empty list also. Thanks a lot, Nitin
--- On Tue, 5/6/08, Hazem Saleh <[EMAIL PROTECTED]> wrote: > From: Hazem Saleh <[EMAIL PROTECTED]> > Subject: Re: getting java.util.NoSuchElementException occasionally > To: "MyFaces Discussion" <[email protected]>, [EMAIL PROTECTED] > Date: Tuesday, May 6, 2008, 10:35 AM > Hi Nitin, > > Do you have selectOneMenus or selectOneLists ? > This error happened with me before because the selectItem > was empty, and > other times because the selectItem had a wrong value. > Please try to look in your application pages from this > perspective. > > On Tue, May 6, 2008 at 4:34 PM, Nitin Deshmukh > <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > I am using MyFaces1.1.5, Tomahawk 1.1.6, ajax4jsf1.1.1 > on weblogic 8.1 > > sp6. Users are sometimes getting > NoSuchElementException. Following is the > > StackTrace of the exception. StackTrace doesn't > give any information > > regarding where in the application is started and > hence I am not able to > > figure out what action might have caused it. > > Any help is appreciated. > > > > Thanks in advance, > > Nitin > > > > ====================================================== > > java.util.NoSuchElementException > > at > java.util.AbstractList$Itr.next(AbstractList.java:426) > > at > > > javax.faces.component._FacetsAndChildrenIterator.next(_FacetsAndChildrenIterator.java:56) > > at > > > javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:604) > > at > > > javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605) > > at > javax.faces.component.UIForm.processDecodes(UIForm.java:56) > > at > > > javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605) > > at > > > javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605) > > at > > > javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:138) > > at > > > org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53) > > at > > > org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:256) > > at > > > org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53) > > at > > > org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191) > > at > > > org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:272) > > at > > > org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32) > > at > > > org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95) > > at > > > org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70) > > at > javax.faces.webapp.FacesServlet.service(FacesServlet.java:139) > > at > > > org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:77) > > at > > > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) > > at > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) > > at > > > weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > > at > > > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) > > at > > > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:100) > > at > > > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) > > at > > > org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) > > at > > > org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) > > at > > > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) > > at > > > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) > > at > > > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) > > at > > > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) > > at > > > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) > > at > > > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) > > at > > > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) > > at > > > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) > > at > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) > > at > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) > > > > > > > > > ____________________________________________________________________________________ > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > -- > Hazem Ahmed Saleh Ahmed > http://www.jroller.com/page/HazemBlog ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

