0

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.

Tanveer
  • 1
  • 1

1 Answers1

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:

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