-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid without columns failed to serialize #14654
Comments
We managed to reproduce with a simple example also with the columns configured. We also find a even weird case were the first time it work and the second time it fails Exception with also the columns configured.
The example below succeed the first time but fails the subsequents tries
|
Looks similar to this issue #6216. |
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654 Co-authored-by: Teppo Kurki <teppo.kurki@vaadin.com>
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654 Co-authored-by: Teppo Kurki <teppo.kurki@vaadin.com>
Replace lambda with anonymous inner class in AbstractDataProvider to fix serialization issue(s). Test available in flow-components project since the issue only happens when the data provider is used with a grid. Fixes #14654 Co-authored-by: Teppo Kurki <teppo.kurki@vaadin.com>
This ticket/PR has been released with Vaadin 23.1.13. |
@caalador We just retested the examples above with vaadin 23.2.5 which should include the fix (according to https://github.com/vaadin/flow/commits/23.2.5 ) but they are still failing. |
Flow 23.2.5 will be in Vaadin 23.2.6 that should be available in mvn in a moment |
This ticket/PR has been released with Vaadin 23.2.6. |
Description of the bug
Grid without columns failed to serialize with the following exception:
cannot assign instance of java.lang.invoke.SerializedLambda to field com.vaadin.flow.data.provider.AbstractDataProvider$DataListenerWrapper.registration of type com.vaadin.flow.shared.Registration in instance of com.vaadin.flow.data.provider.AbstractDataProvider$DataListenerWrapper
In own production code the same exception happens also with columns configured but we weren't able to create a minimal reproducible example.
Minimal reproducible example
Expected behavior
No exception throwed on serialization
Versions:
The text was updated successfully, but these errors were encountered: