alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
86 stars 54 forks source link

java.lang.NoSuchMethodError: 'void com.vaadin.flow.component.grid.Grid.setItems(java.util.Collection)' with Vaadin 17.0.1 #77

Closed vacax closed 3 years ago

vacax commented 3 years ago

The library stopped working when I upgraded to Vaadin 17.0.1:

Caused by: java.lang.NoSuchMethodError: 'void com.vaadin.flow.component.grid.Grid.setItems(java.util.Collection)' at org.vaadin.crudui.crud.impl.GridCrud.refreshGrid(GridCrud.java:122) ~[crudui-4.3.1.jar:4.3.1] at org.vaadin.crudui.crud.impl.GridCrud.onAttach(GridCrud.java:91) ~[crudui-4.3.1.jar:4.3.1] at com.vaadin.flow.component.ComponentUtil.onComponentAttach(ComponentUtil.java:230) ~[flow-server-4.0.1.jar:4.0.1] at com.vaadin.flow.internal.nodefeature.ComponentMapping.lambda$onAttach$0(ComponentMapping.java:102) ~[flow-server-4.0.1.jar:4.0.1] at java.base/java.util.Optional.ifPresent(Optional.java:183) ~[na:na]

alejandro-du commented 3 years ago

Thanks for reporting. I still have to decide whether to support the latest version or the latest LTS version of Vaadin. Unfortunately, I don't have the time to support both atm. Follow this issue to get notified when the fix is ready. In the meantime, you could try compiling the project yourself using V17.

vacax commented 3 years ago

Thank you I will be testing and reporting

Thibstars commented 3 years ago

Thank you I will be testing and reporting

@vacax have you been able to compile the project using V17 yet?

Seems to me there is an issue in org.vaadin.crudui.form.impl.field.provider.CheckBoxGroupProvider, since CheckboxGroupimplements HasDataViewinstead of HasItems.

alejandro-du commented 3 years ago

The add-on only supports LTS versions (currently the 14 series).

bonifacechacha commented 3 years ago

You can this fork for vaadin 19

alejandro-du commented 3 years ago

Version 4.5.0 should fix this