ServerRpcHandler[266]: Unexpected message id from the client

Currently I facing an issue on Click Button pop-out windows, sometimes will getting


"[WARN ]
com.vaadin.server.communication.ServerRpcHandler[266]
: Unexpected message id from the client. Expected: xx, got: xx "

error message.

My code is like follwing:

  1. create simple popout window with message lable and single button.
  2. add button listener (on popWindow) and windowCloseListener (on Parent)
  3. use
    UI.getCurrent().addWindow(popwindow)
    to display popout window
  4. click popout window button to close window "
    UI.getCurrent().removeWindow(popwindow)
    "
  5. windowCloseListener on implemented on parent page will listen windows close event and reload data “doQuery(…)”

I often recevied that error message, and popout window’s button need to click twice, and only the second time buttonListener will be triggered.

anyone know what could be issue ?