wood burning stoves 2.0
The moose likes Testing and the fly likes NoSuch Element Exception after running the Jmeter test! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "NoSuch Element Exception after running the Jmeter test!" Watch "NoSuch Element Exception after running the Jmeter test!" New topic

NoSuch Element Exception after running the Jmeter test!

Aman Kaur

Joined: Aug 25, 2008
Posts: 9
Hi All,
As I was trying to test the application, it is throwing the following errors in the tomcat logs.

Caused by: java.util.NoSuchElementException
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:119)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:146)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:51)
at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:165)
at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
at javax.faces.component.UIInput.validate(UIInput.java:875)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1078)
at javax.faces.component.UIInput.processValidators(UIInput.java:670)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1039)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1039)
at javax.faces.component.UIForm.processValidators(UIForm.java:229)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1039)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:672)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)

Can anyone explain why is this happening and what would be the resolution for this?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
It seems like you'd have 3 items of some kind on the UI and none of them match what your test is looking for. This is just shooting in the dark, though, since there's not much information to go from. Maybe you could tell us more details?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: NoSuch Element Exception after running the Jmeter test!
It's not a secret anymore!