File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes NoSuch Element Exception after running the Jmeter test! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "NoSuch Element Exception after running the Jmeter test!" Watch "NoSuch Element Exception after running the Jmeter test!" New topic
Author

NoSuch Element Exception after running the Jmeter test!

Aman Kaur
Greenhorn

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
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: NoSuch Element Exception after running the Jmeter test!
 
Similar Threads
I want solotion for following error
SelectOneMenu problem
SelectItems + IllegalArgumentException + help
at javax.faces.component.SelectItemsIterator.next
What's the problem?Can anybody help me?