• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

jmeter

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to use jmeter to run the load testing for my application. Could any one help me "how to get the session parameters in the jmeter". When I send a request from the jmeter, I get null pointer exception on the application server console since the session value is null. It would be great if somebody help me on this as it is very critical.

Regards,
Prakash
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JMeter can't put values into the session. That has to be done by your webapp code. Maybe you need to have JMeter visit another page first so that the session values are initialized?
 
Prakash Chicka
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
James, thank you very much for your response....let me elaborate my problem. Basically the application has been developed using MVC architecture and I have to do the performance test for following requests....

1. Login
2. Send message
3. Track message (here the user can see the messages sent and received)
4. Logout

The session will be created when the user goes to the the login page. When the user hits submit button after entering username/password, it gets "carrID" from the session (we are using cookies to mantain session) and invokes a servlet. I have given some souts to check what session value is coming, it says session value=null. But when I see the TCP dump, the jmeter is sending the proper values. Could you please let me know how to debug this problem and if there are any different settings in jmeter for MVC architecture.

thanks & regards,
Prakash
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic