Communication error: Invalid JSON from server: 1|X
It is not regular, but after few minutes it will come.
The problem is while editing a form… Users lose their data.
This ia like a nightmare… after several month of development, deploying the app to AWS, users get these errors…
I never got this error in DEV/TEST on localhost,… only on in AWS cloud.
Please help…
Thank you.
JMIX 1.5.5
AWS EC2 Linux 2023, single instance behind Application loadbalancer.
UI:
Communication problem
Pay attention to any unsaved data, and click here to continue.
Invalid JSON from server: 1|X
WebDeveloper Tools Console in Edge:
vaadinPush.js?v=8.14.3-4-jmix:1 Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). - wasClean: false
log @ vaadinPush.js?v=8.14.3-4-jmix:1
warn @ vaadinPush.js?v=8.14.3-4-jmix:1
ax.onclose @ vaadinPush.js?v=8.14.3-4-jmix:1
I increased the time out on Application LoadBalancer in AWS EC2 to 6 minutes.
It looks much better.
For example 15 minutes without any error… before impossible.
But the error is there from time to time…
So I guess Loadbalancer is not the cause or not the only cause … ?
So maybe Atmosphere or the reverse proxy on EC2 instance.
I’m afraid I can’t help with this except to give advice.
Use Haulmont consulting services, they are excellent and I used it when I was stuck, it cost some money but given your situation it may be warranted - atm they are all busy with the February Jmix release and will be for some time, so I doubt they can find time to deal with the complex issue on the forum topic for now - by using the consultancy service you prioritize your issue
when using AWS Elastic, you get their ALB (application load balancer), which has NGINX in the background, but it doesn’t like Jetty
you can’t finely configure the nginx in the ALB because it’s provided by AWS infrastructure without giving you access to it
→ so I installed a Tomcat web server and deployed as war to the EC2 instance - giving up, for now, to use Elastic with their load balancer
→ I plan to convert this app from CUBA to Jmix 2.2 and then use a docker image, and I will build image to have Tomcat, and then put it on AWS, hopefully, Elastic Container Service
Websocket closed, reason: Normal closure; the connection successfully completed whatever purpose for which it was created. - wasClean: true vaadinPush.js:1:40443
Vaadin freees.
JMix freezes.
Game over.
Client side, FireFox Atmosphere detailed debug log, nothing more than:
Connection was closed abnormally (that is, with no close frame being sent). - wasClean: false
10:59:41.961 q.logLevel='debug';
10:59:41.973 "debug"
10:59:51.389 Thu Mar 07 2024 10:59:51 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onclose vaadinPush.js:1:40443
10:59:51.389 Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). - wasClean: false vaadinPush.js:1:40443
10:59:51.389 Thu Mar 07 2024 10:59:51 GMT+0100 (Central European Standard Time) Atmosphere: Firing onClose (closed case) vaadinPush.js:1:40443
10:59:51.390 Thu Mar 07 2024 10:59:51 GMT+0100 (Central European Standard Time) Atmosphere: Request already closed, not firing onClose (closed case) vaadinPush.js:1:40443
10:59:51.390 Thu Mar 07 2024 10:59:51 GMT+0100 (Central European Standard Time) Atmosphere: invoking .close() on WebSocket object vaadinPush.js:1:40443
10:59:51.390 Thu Mar 07 2024 10:59:51 GMT+0100 (Central European Standard Time) Atmosphere: Firing onReconnect 2 vaadinPush.js:1:40443
10:59:56.394 Invoking executeWebSocket, using URL: wss://xxxx.xxxxx.eu/vaadinServlet/PUSH?v-uiId=0&v-pushId=9e4d3270-f605-479c-995b-7bf55ef8f317&X-Atmosphere-tracking-id=88023ec5-a77c-49cc-a648-01ea6786ad01&X-Atmosphere-Framework=2.3.2.vaadin2-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&Content-Type=application/json; charset=UTF-8&X-atmo-protocol=true vaadinPush.js:1:40443
10:59:56.527 Thu Mar 07 2024 10:59:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onopen vaadinPush.js:1:40443
10:59:56.528 Websocket successfully opened vaadinPush.js:1:40443
10:59:56.528 Thu Mar 07 2024 10:59:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
10:59:56.528 Thu Mar 07 2024 10:59:56 GMT+0100 (Central European Standard Time) Atmosphere: Firing onReopen 2 vaadinPush.js:1:40443
11:00:56.610 Thu Mar 07 2024 11:00:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:01:56.616 Thu Mar 07 2024 11:01:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:02:50.979 initMouseEvent() is deprecated. Use the MouseEvent() constructor instead. line 9 > injectedScript:1:13050
11:02:56.623 Thu Mar 07 2024 11:02:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:03:56.531 Thu Mar 07 2024 11:03:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:04:56.530 Thu Mar 07 2024 11:04:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:05:56.530 Thu Mar 07 2024 11:05:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:06:56.549 Thu Mar 07 2024 11:06:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:07:56.529 Thu Mar 07 2024 11:07:56 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onclose vaadinPush.js:1:40443
11:07:56.530 Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). - wasClean: false vaadinPush.js:1:40443
11:07:56.530 Thu Mar 07 2024 11:07:56 GMT+0100 (Central European Standard Time) Atmosphere: Firing onClose (closed case) vaadinPush.js:1:40443
11:07:56.530 Thu Mar 07 2024 11:07:56 GMT+0100 (Central European Standard Time) Atmosphere: Request already closed, not firing onClose (closed case) vaadinPush.js:1:40443
11:07:56.530 Thu Mar 07 2024 11:07:56 GMT+0100 (Central European Standard Time) Atmosphere: invoking .close() on WebSocket object vaadinPush.js:1:40443
11:07:56.530 Thu Mar 07 2024 11:07:56 GMT+0100 (Central European Standard Time) Atmosphere: Firing onReconnect 2 vaadinPush.js:1:40443
11:08:01.534 Invoking executeWebSocket, using URL: wss://xxxx.xxxxx.eu/vaadinServlet/PUSH?v-uiId=0&v-pushId=9e4d3270-f605-479c-995b-7bf55ef8f317&X-Atmosphere-tracking-id=88023ec5-a77c-49cc-a648-01ea6786ad01&X-Atmosphere-Framework=2.3.2.vaadin2-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&Content-Type=application/json; charset=UTF-8&X-atmo-protocol=true vaadinPush.js:1:40443
11:08:01.681 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onopen vaadinPush.js:1:40443
11:08:01.681 Websocket successfully opened vaadinPush.js:1:40443
11:08:01.681 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:08:01.681 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Firing onReopen 2 vaadinPush.js:1:40443
11:08:01.682 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onmessage vaadinPush.js:1:40443
11:08:01.682 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Firing onMessage vaadinPush.js:1:40443
11:08:01.685 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Closing (AtmosphereRequest._close() called) vaadinPush.js:1:40443
11:08:01.685 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Firing onClose (unsubscribe case) vaadinPush.js:1:40443
11:08:01.685 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Request already closed, not firing onClose (unsubscribe case) vaadinPush.js:1:40443
11:08:01.685 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help https://xhr.spec.whatwg.org/#sync-warning vaadinPush.js:1:26045
11:08:01.790 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: ajaxRequest.onreadystatechange, new state: 4 vaadinPush.js:1:40443
11:08:01.791 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: onreadystatechange has been ignored due to _abortingConnection flag vaadinPush.js:1:40443
11:08:01.791 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: invoking .close() on WebSocket object vaadinPush.js:1:40443
11:08:01.791 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Request already closed, not firing onClose (unsubscribe case) vaadinPush.js:1:40443
11:08:01.821 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: websocket.onclose vaadinPush.js:1:40443
11:08:01.821 Websocket closed, reason: Normal closure; the connection successfully completed whatever purpose for which it was created. - wasClean: true vaadinPush.js:1:40443
11:08:01.821 Thu Mar 07 2024 11:08:01 GMT+0100 (Central European Standard Time) Atmosphere: Request already closed, not firing onClose (closed case) 2 vaadinPush.js:1:40443
11:08:01.821 Websocket closed normally vaadinPush.js:1:40443
Interesting is that, I got a lot of these error (it is INFO level actually):
2024-03-17 23:49:25.977 INFO 71664 --- [nio-8080-exec-2] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:26.994 INFO 71664 --- [nio-8080-exec-4] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:29.014 INFO 71664 --- [nio-8080-exec-7] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-03-17 23:49:31.018 INFO 71664 --- [io-8080-exec-10] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:32.021 INFO 71664 --- [nio-8080-exec-2] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:36.036 INFO 71664 --- [nio-8080-exec-7] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:37.047 INFO 71664 --- [nio-8080-exec-9] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:41.049 INFO 71664 --- [nio-8080-exec-4] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:42.061 INFO 71664 --- [nio-8080-exec-6] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:46.069 INFO 71664 --- [nio-8080-exec-1] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:47.078 INFO 71664 --- [nio-8080-exec-3] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:51.081 INFO 71664 --- [nio-8080-exec-8] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:52.094 INFO 71664 --- [io-8080-exec-10] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:56.098 INFO 71664 --- [nio-8080-exec-5] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:49:57.111 INFO 71664 --- [nio-8080-exec-7] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:50:01.113 INFO 71664 --- [nio-8080-exec-2] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:50:02.149 INFO 71664 --- [nio-8080-exec-4] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:50:06.134 INFO 71664 --- [nio-8080-exec-9] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:50:07.171 INFO 71664 --- [nio-8080-exec-1] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
2024-03-17 23:50:11.145 INFO 71664 --- [nio-8080-exec-6] com.vaadin.server.VaadinServlet : Requested resource [/VAADIN/push] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
BUT this error is suspicious:
IllegalStateException: Session has already been set.
2024-03-17 23:55:02.306 ERROR 71664 --- [nio-8080-exec-9] com.vaadin.server.DefaultErrorHandler :
java.lang.IllegalStateException: Session has already been set. Old session: com.vaadin.server.VaadinSession@62bc9424 for jmixVaadinServlet. New session: com.vaadin.server.VaadinSession@16549935 for jmixVaadinServlet.
at com.vaadin.ui.UI.setSession(UI.java:502) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:189) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
2024-03-19 10:51:00.217 ERROR 69968 --- [nio-8080-exec-6] com.vaadin.server.DefaultErrorHandler :
java.lang.IllegalStateException: Session has already been set. Old session: com.vaadin.server.VaadinSession@40113ab6 for jmixVaadinServlet. New session: com.vaadin.server.VaadinSession@755c7445 for jmixVaadinServlet.
at com.vaadin.ui.UI.setSession(UI.java:502) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:189) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:67) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1636) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:465) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar:4.0.1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
2024-03-19 10:51:00.220 ERROR 69968 --- [nio-8080-exec-6] o.a.c.c.C.[.[.[/].[jmixVaadinServlet] : Servlet.service() for servlet [jmixVaadinServlet] threw exception
java.lang.IllegalStateException: Session has already been set. Old session: com.vaadin.server.VaadinSession@40113ab6 for jmixVaadinServlet. New session: com.vaadin.server.VaadinSession@755c7445 for jmixVaadinServlet.
at com.vaadin.ui.UI.setSession(UI.java:502) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:189) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:67) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1636) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:465) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar:4.0.1]
2024-03-19 10:51:00.231 ERROR 69968 --- [nio-8080-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [com.vaadin.server.ServiceException: java.lang.IllegalStateException: Session has already been set. Old session: com.vaadin.server.VaadinSession@40113ab6 for jmixVaadinServlet. New session: com.vaadin.server.VaadinSession@755c7445 for jmixVaadinServlet.] with root cause
java.lang.IllegalStateException: Session has already been set. Old session: com.vaadin.server.VaadinSession@40113ab6 for jmixVaadinServlet. New session: com.vaadin.server.VaadinSession@755c7445 for jmixVaadinServlet.
at com.vaadin.ui.UI.setSession(UI.java:502) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:189) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:67) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1636) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:465) ~[vaadin-server-8.14.3-4-jmix.jar:8.14.3-4-jmix]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) ~[javax.servlet-api-4.0.1.jar:4.0.1]
The App works. Just log has these errors.
The real pain is after logout.
If you click the Logout link, the app end s in deadend loop.
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: 2024-03-19 15:37:12.579 ERROR 5978 --- [nio-5000-exec-7] io.jmix.ui.AppUI : Error handling exception
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: Original exception:
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: java.lang.IllegalStateException: This UI instance is already initialized (as UI id 0) and can therefore not be initialized again (as UI id 2). Please make sure you are not accidentally reusing an old UI instance.
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at com.vaadin.ui.UI.doInit(UI.java:730)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:209)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:67)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1636)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:465)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
Mar 19 15:37:12 ip-172-31-14-147 web[5978]: #011at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
Mar 19 15:38:22 ip-172-31-14-147 web[5978]: 2024-03-19 15:38:22.349 ERROR 5978 --- [nio-5000-exec-5] io.jmix.ui.AppUI : Error handling exception
Mar 19 15:38:22 ip-172-31-14-147 web[5978]: Original exception:
Mar 19 15:38:22 ip-172-31-14-147 web[5978]: java.lang.IllegalStateException: This UI instance is already initialized (as UI id 0) and can therefore not be initialized again (as UI id 3). Please make sure you are not accidentally reusing an old UI instance.
Mar 19 15:38:22 ip-172-31-14-147 web[5978]: Exception in handlers:
Mar 19 15:38:22 ip-172-31-14-147 web[5978]: java.lang.IllegalStateException: No App is bound to the current VaadinSession
It is impossible to reload and login agaian. Only server restart helps.
@tomas.klems - could you prepare a simplest test application and deployment instructions to reproduce the problem?
Also, if possible, please test this example application with the Quick Cloud Deployment (it uses Apache HTTP Server as a reverse proxy).
So I also had this problem and I also did a lot of investigation and trial and error.
For the application load balancer I use a HTTP client keep alive duration: 3600 seconds. Very long I know. Somehow it seems to help. Also a Connection idle timeout: 900 seconds.
For the nginx proxy configuration I use the following: