Upgrade 1.5 to 2.0.2 Questions

Today I embarked on the journey to upgrade my application from 1.5.3 to 2.0.2 by following the migration documentation and wanted to confirm I did the right thing.

On step 9, one suggestion would be to break out the list of items to remove and copy into separate steps like the others. Also, the instruction says to remove <base_package>/menu.application and I actually had more of that pattern, so I removed <base_package>/menu.*

I got to the point of starting the application now that it was converted to FlowUI under v1.5.3 and everything seemed to work OK.

Next step was to use Studio to upgrade to 2.0.2. This ran fine, but afterwards I had a couple problems.

When trying to open the user list view, I received an error about pagination facet not supported, so I deleted that element in the user-list-view.xml file. Then I got an error about unable to find action type ‘create’. (sorry, I did not save the exact error messages) I was not sure how to edit the file to fix this, so I created a new jmix 2 project and copied the XML file from there into my project, which allowed the user list view to work.

Now that all standard views are working on v2.0.2, the only problem I see is a log message and stack trace upon logout. Any suggestions to resolve this?

Next step is is to start recreating my views.

2023-09-16T15:43:54.554-04:00  INFO 17396 --- [nio-8080-exec-3] c.v.f.s.c.AtmospherePushConnection       : Timeout waiting for messages to be sent to client before disconnect

java.util.concurrent.TimeoutException: null
	at org.atmosphere.cpr.BroadcasterFuture.get(BroadcasterFuture.java:127) ~[atmosphere-runtime-3.0.3.slf4jvaadin1.jar:3.0.3.slf4jvaadin1]
	at com.vaadin.flow.server.communication.AtmospherePushConnection.disconnect(AtmospherePushConnection.java:350) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.component.internal.UIInternals.setPushConnection(UIInternals.java:467) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.component.internal.UIInternals.setSession(UIInternals.java:419) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinSession.removeUI(VaadinSession.java:620) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinService.lambda$fireSessionDestroy$20ed7015$1(VaadinService.java:617) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.component.UI.accessSynchronously(UI.java:483) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.component.UI.accessSynchronously(UI.java:444) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinService.lambda$fireSessionDestroy$9c853e43$1(VaadinService.java:607) ~[flow-server-24.0.9.jar:24.0.9]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
	at com.vaadin.flow.server.VaadinService.runPendingAccessTasks(VaadinService.java:2024) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinSession.unlock(VaadinSession.java:711) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinService.ensureAccessQueuePurged(VaadinService.java:1990) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinService.accessSession(VaadinService.java:1957) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinSession.access(VaadinSession.java:1015) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinService.fireSessionDestroy(VaadinService.java:598) ~[flow-server-24.0.9.jar:24.0.9]
	at com.vaadin.flow.server.VaadinSession.valueUnbound(VaadinSession.java:207) ~[flow-server-24.0.9.jar:24.0.9]
	at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1758) ~[tomcat-embed-core-10.1.8.jar:10.1.8]
	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:844) ~[tomcat-embed-core-10.1.8.jar:10.1.8]
	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:727) ~[tomcat-embed-core-10.1.8.jar:10.1.8]
	at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1160) ~[tomcat-embed-core-10.1.8.jar:10.1.8]
	at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:115) ~[tomcat-embed-core-10.1.8.jar:10.1.8]
	at org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler.logout(SecurityContextLogoutHandler.java:72) ~[spring-security-web-6.1.0.jar:6.1.0]
<snip>

Hello!

Thank you for reporting the problem! There is a GtiHub issue: TimeoutException is thrown while logging out using LogoutAction · Issue #1579 · jmix-framework/jmix · GitHub.

The exception does not affect application functionality, so it can be ignored.