After update to vaadin 7.4.1: IllegalStateException Session has already bee


after updating from vaadin 7.1.15 to 7.4.1 we get the following error when restarting the application via the


java.lang.IllegalStateException: Session has already been set. Old session: com.vaadin.server.VaadinSession@13cdda2d for vaadinServlet. New session: com.vaadin.server.VaadinSession@79dc5517 for vaadinServlet. com.vaadin.ui.UI.setSession( com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI( com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest( com.vaadin.server.SynchronizedRequestHandler.handleRequest( com.vaadin.server.VaadinService.handleRequest( com.vaadin.server.VaadinServlet.service( javax.servlet.http.HttpServlet.service( We are using a ui scope (spring) and it seems that after the update the ui is not selected correctly from the ui scope.
Does anyone know what changes may cause the failure?

The parameter
in VaadinServer is deprecated.
What is currently the correct way to restart an application?