Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NullPointerException in session variables  RSS feed

 
Ricardo Alvarado
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this problem...

Lets say we have 3 jsp pages (or servlets)....

A ----> B ----> C---->

When I pass session variables from A to B, the session persistence seems to be ok, I'm getting all the values and everything looks great.
When I pass these values from B to C it seems some of these
session variables are missing.. (NullPointerException)

I'm working with WebSphere and the weird thing it is working in a specific server and in other it is not working.

I think it could probably be a session persistence configuration issue but I can't find the source of this problem...

Do someone know, or maybe have experience this kind of problem?

Thank you
 
Balan Raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh.. Just check the websphere implementation for Session object. Suspect, the culprit is internally the implementaion uses hastable to store the session, which will not allow u to put 'null' as keys /values.
 
Murthy Cherukumilli
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ca you paste the code snippets so we can see how you aerusing the variables and their scope etc.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!