TextField out of sync cause ?

Hi everybody !

Stuck with the strange problem today - added a TextField component to the corner of a simple window, build from a custom layout, to implement a quick search functionality.

The problem is when user types a text in that TextField and clicks “Enter”, an OutOfSync message is displayed. However, this happens only for the first time in the user session. After OutOfSync message it works as expected.

Cannot figure out what could be the reason… Running latest 6.1.5 Vaadin, do not have any background threads running, no any messages or exception in logs and console… kind a weird issue

Found a bit more on a problem - this happends because Im changing two main windows and each of them has its own URIFragmentUtility:

  • when applicaiton starts, login window is created and attached as main window. There are several views inside this window for password reminder, self registration, license agreement, login/password form.

  • when user authenticates, application removes the login window (via removeWindow) and creates a new main window and attaches it as a new main one. This main window also has several views and its URIFragmentUtility.

If, after login, I’ll manually refresh the browser page, OutOfSync error does not happen

HI!

Sounds like a some kind of timing issue. Some component from the old window is sending a variable to server when it is already removed from server side. (I wouldn’t be surprised if it was the URIFragmentUtility)

If there are not too many components visible you could add debugId’s for all components and catch the out of sync error on server. Then we could find out what is the component still sending variables.

cheers,
matti