Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

vaadin request wrapped session lose it's value

Daniel Brenzel
7 years ago Sep 10, 2015 1:17pm

Hello everybody,

at the moment i'm trying to fix an Bug at the rights management. At the begin of the vaadin page the Wrapped Session has allways a value. When the admin press change user (to check the permission of it) rarely the getWrappedSession function returns null:

request.getWrappedSession().setAttribute("olduser", user);
request.getWrappedSession().setAttribute("user", newuser);

I allways call getWrappedSession at the start. So the variable should has an value. 

Is this problem known?

I'm looking forward to help.