On 8 juin, 20:14, olivier nouguier <
olivier.nougu...@gmail.com> wrote:
> 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 <
mikael.k...@gmail.com>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
google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to