VaadinSession has already been set

javax.servlet.ServletException: java.lang.IllegalStateException: VaadinSession has already been set
com.vaadin.server.VaadinServlet.handleServiceException(VaadinServlet.java:592)
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:357)
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:215)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

java.lang.IllegalStateException: VaadinSession has already been set
com.vaadin.ui.UI.setSession(UI.java:737)
com.vaadin.server.AbstractCommunicationManager.getBrowserDetailsUI(AbstractCommunicationManager.java:2533)
com.vaadin.server.AbstractCommunicationManager.handleBrowserDetailsRequest(AbstractCommunicationManager.java:2433)
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:339)
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:215)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Facing an issue when I’m refreshing the browser ( using Vaadin 7 Beta 4) any help

Thanks in Advance

-Regards
Samkrao

There seems to be something very interesting going on in your application. The only way I can see that you’d get that kind of stacktrace is if the UI has already been used in one VaadinServiceSession but it is now used in some other session.

Are you using multiple Servlets or Portlets?

Are you using LegacyApplication?

Are you using any custom UIProvider?

Do you have @PreserveOnRefresh on your UI class?

I created
http://dev.vaadin.com/ticket/9989
for improving the error message to give more information about what is causing the problem. The improved message will most likely be in the next nightly build which should be published in about 14 hours from now. Could you try your code with that build instead when it is available to get more information about what is going on?

Thanks Leif Åstrand,
For your quick help.

you are right I’m using spring integration plugin/addon and forgot to annotate with @Scope(“request”). -_-