• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when will a request object become null

 
Mohammed Shaik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any one know what are the scenarios when a 'request' object will become null
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An object never "becomes null". Object references can be set to null. What are you really asking?
 
Mohammed Shaik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, I initiate a session, use my application continuously and view different pages. Randomly at some point the page just hangs and in the catalina.out i get "NullPointer error" pointing to the line which is "request.getSession..." . So this is the problem.
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shaik,
Probabaly you can re-check your program and also if you have any session time-out very shortly then if your not accessing the resource within that stipulated time, you might get this.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Shalk",

Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic