Re: HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception

2010-06-09 Thread KenJi_getpowered
As a matter of fact, I resolved it. The getThreadLocalRequest() return null when called into the constructor of the 1st RemoteServiceServlet called. What can be disturbing is : - It returns null even if the session is already initialized by a classic servlet - It is not returning null when called

Re: HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception

2010-06-08 Thread olivier nouguier
Hi, the getThreadLocalRequest() as it sound returns the request stored *during* the request/response in a ThreadLocal. So if it return null it's because it is not the same thread ;) On Tue, Jun 8, 2010 at 11:05 AM, KenJi_getpowered wrote: > Hello every body, > > I can't figure out why there is

HttpSession session = getThreadLocalRequest().getSession() Null Pointer Exception

2010-06-08 Thread KenJi_getpowered
Hello every body, I can't figure out why there is a Null Pointer Exception here. I am trying to share informations through sessions within my application. I have a regular servlet that sets the session and insert a login. then I wanted to retrieve that login into a RemoteServiceServlet with that