Using Vaadin 14 I am facing the following error while I try to execute below code
UI current = UI.getCurrent();
Thread th = new Thread(() -> {
UI.setCurrent(current);
current.access(() -> {
//calling my service to save the data
current.push();
});
});
th.start();
I get this above error very rare but need to remove that as it shows in UI.