Home > Linux > Jmeter JSF client state

Jmeter JSF client state

January 15th, 2010 Leave a comment Go to comments

In order to know what kind of resources a new application needed I figured out to do a load test. The load testing software I used for this test is Apache Jmeter. The application to test is a Java based application deployed in Tomcat 6.

I used the Jmeter HTTP Proxy Recorder to simulate a normal user session to create a realistic test plan. Once I executed the test plan against the web application it returned Internal Server Error (Response code: 500). By using the “View Results Tree” Listener I was able to locate the problem as the Listener displays basic HTML and XML representations of the response.

javax.faces.application.ViewExpiredException: viewId:/presentation/task.jsf - View /presentation/task.jsf could not be restored.

It appeared that the HTTP Proxy Recorder had recorded the server and client state. The javax.faces.ViewState field is written for both server and client side state saving. So removing this attribute from the sampler data makes Jmeter process the pages without error.

It took me a couple of hours to resolve this issue, hope this helps someone stumbling across the same.

Categories: Linux Tags: ,
  1. el_harrathi
    June 16th, 2010 at 14:24 | #1

    thinks.you save my life

  2. serda kasaci
    September 7th, 2010 at 08:39 | #2

    Thanks a lot!

  1. No trackbacks yet.