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 <[email protected]>wrote: > 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 instruction : > HttpSession session = getThreadLocalRequest().getSession(); > > but as I said it gives me a NPE. What is wrong? > Also I can't find any good documentation on working with sessions with > GWT. > > Do you have any solution? or at least explanation? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- "Computers are useless. They can only give you answers." - Pablo Picasso - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
