I updated my vaadin project from 24.5.7 with spring boot 3.2.12 to 24.6.0 with spring boot 3.4.1
spring-modulith.version from 1.2.4 to 1.3.0
after update, all the list screen endpoints are not able to be serialized. They are throwing error
com.vaadin.hilla.EndpointInvoker : Unable to deserialize an endpoint ‘UsersListController’ method ‘getListData’ parameter ‘pageable’ with type ‘org.springframework.data.domain.Pageable’
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.springframework.data.domain.Pageable (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
at [Source: UNKNOWN; byte offset: #UNKNOWN]
Are you using the default ObjectMapper or a custom one? The Hilla one has a mapper that replaces the Spring Pageable with a custom one that can be transferred.
I tried to upgrade a project locally and everything using a Pageable, like CRUD components for example, keeps working fine. I can see that generated code uses the custom Pageable.
There’s probably something custom in your project that skips the type mapping.
I have not got chance to debug this issue yet.
I would like to add that, I am not using spring-ai, unless its getting included for copilot automatically.
Looks like another qualifier is missing. Sorry for that.
We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.