user1608
(Факторинг Плюс)
September 19, 2019, 7:52am
1
(java 1.8, vaadin 14,tomcat 9.2)
Hello, i see strange behavior.
When I launch the application, it is initialized twice
At this point, the browser has no open tabs with another instance
Console output:
START
com.zungaapps.odin.MainView@1b2d3d9b
________
START
com.zungaapps.odin.MainView@742333d6
________
Code:
@Route("")
@PWA(name = "Project Base for Vaadin Flow", shortName = "Project Base")
@Push(value = PushMode.AUTOMATIC, transport = Transport.WEBSOCKET_XHR)
public class MainView extends VerticalLayout {
public MainView() {
setSizeFull();
setPadding(false);
setMargin(false);
setSpacing(false);
setId(MainView.class.getSimpleName());
System.out.println("START");
System.out.println(this);
System.out.println("________");
}
Any update on the above issue. I’ve the same behaviour which is very strange.
Факторинг Плюс:
(java 1.8, vaadin 14,tomcat 9.2)
Hello, i see strange behavior.
When I launch the application, it is initialized twice
At this point, the browser has no open tabs with another instance
Console output:
START
com.zungaapps.odin.MainView@1b2d3d9b
________
START
com.zungaapps.odin.MainView@742333d6
________
Code:
@Route("")
@PWA(name = "Project Base for Vaadin Flow", shortName = "Project Base")
@Push(value = PushMode.AUTOMATIC, transport = Transport.WEBSOCKET_XHR)
public class MainView extends VerticalLayout {
public MainView() {
setSizeFull();
setPadding(false);
setMargin(false);
setSpacing(false);
setId(MainView.class.getSimpleName());
System.out.println("START");
System.out.println(this);
System.out.println("________");
}
Guenter2
(Guenter Braeutigam)
April 7, 2020, 1:01pm
3
Hi,
I had a similar issue, if I used service worker (pwa, installed as an app) and changed the port where application deployed on tomcat.
After unregistering the old service worker (chrome => F12 => tab Application => Service Workers => Right window) the problem was solved.
Maybe it helps…
It worked thank you for the solution.