I’m using Vaadin 7 and the Navigator.
My first page (i.e. “/”) is a login page.
My app also has a logout button,which, following https://vaadin.com/wiki/-/wiki/Main/Handling+logout: attempts to close the session and redisplay the login page:
com.vaadin.server.ServiceException: java.lang.IllegalStateException: This UI instance is already initialized (as UI id 0) and can therefore not be initialized again (as UI id 0). Please make sure you are not accidentally reusing an old UI instance.
Can anyone explain what is going on? It seems like I also need to “invalidate” the UI as well.
How can I do this? I tried calling getUI().close(), but the same exception resulted.
Hmm… that doesn’t work for me either… I’m still getting the same exception:
java.lang.IllegalStateException: This UI instance is already initialized (as UI id 0) and can therefore not be initialized again (as UI id 0). Please make sure you are not accidentally reusing an old UI instance.