Trying to test JSF2.2 application in jmeter5.3. Getting javax.faces.application.ViewExpiredException in each request. Using Regular expression extractor to read view stateenter image description here.
Asked
Active
Viewed 94 times
1 Answers
0
Looking into this answer
The ViewExpiredException will be thrown whenever the javax.faces.STATE_SAVING_METHOD is set to server (default) and the enduser sends a HTTP POST request on a view via <h:form> with <h:commandLink>, <h:commandButton> or <f:ajax>, while the associated view state isn't available in the session anymore.
So you're sending stale viewstate parameter, check JMeter Scoping Rules user manual entry, you need to extract the ViewState not only once, but from each and every subsequent page so if you placed Regular Expression Extractor as a child of a single request try moving it one level up
Few more hints:
- Using regular expressions for extracting data from HTML is not the best idea, I would suggest considering switching to CSS Selector Extractor instead
- According to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.4.1 or whatever is the latest stable version available at JMeter Downloads page

Dmitri T
- 159,985
- 5
- 83
- 133