在Vaadin 14中激活另一个请求时尝试启动一个新请求时出错

时间:2020-02-05 10:48:30

标签: vaadin-flow

使用Vaadin 14尝试执行以下代码时,我遇到以下错误

          UI current = UI.getCurrent();
            Thread th = new Thread(() -> {
                UI.setCurrent(current);
                current.access(() -> {
                 //calling my service to save the data
                 current.push();
                });
             });
            th.start();

我很少遇到上述错误,但需要将其删除,如UI中所示。

0 个答案:

没有答案