3

I'm getting the below error on the ListSelect component. A few version back in vaadin 8 it's working file. Now I've updated the version to 8.14.2 then I'm getting this:

java.lang.IllegalStateException: Client tried fetch more rows than allowed. This is denied to prevent denial of service.
    at com.vaadin.data.provider.DataCommunicator.onRequestRows(DataCommunicator.java:311)
    at com.vaadin.data.provider.DataCommunicator$SimpleDataRequestRpc.requestRows(DataCommunicator.java:74)
    at jdk.internal.reflect.GeneratedMethodAccessor370.invoke(Unknown Source)
Chris
  • 26,361
  • 5
  • 21
  • 42
avdhesh
  • 317
  • 2
  • 10
  • The default is 500. You can increase this by calling `setMaximumAllowedRows` on your `DataCommunicator`. – tgdavies Nov 08 '21 at 06:37
  • Could you describe under which circumstances you need to have more than 500 rows lazy loaded at once to a Grid or ComboBox? – Leif Åstrand Nov 08 '21 at 06:51
  • Thanks for the quick reply. But there is no such method ("setMaximumAllowedRows ") in DataCommunicator as I see – avdhesh Nov 08 '21 at 06:57
  • 1
    DataCommunicator#setMaximumAllowedRows is coming in next release, you can use it with 8.15-SNAPSHOT already. Jut noting ListSelect, TwinColSelect, ... do not have lazy loading support at all, and not purposed for large data sets. – Tatu Lund Nov 08 '21 at 07:55
  • Thanks, @TatuLund. I see version 8.15-SNAPSHOT is not available in the central maven repository – avdhesh Nov 08 '21 at 08:07
  • 1
    Vaadin snapshots and other prereleases are not published in maven central, you need to add vaadin prereleases repo https://maven.vaadin.com/vaadin-prereleases/ – Tatu Lund Nov 08 '21 at 08:50
  • Seems to have been been introduced in 8.14.x our users just reported it today after we did an upgrade from 8.13.x to 8.14.1 last week – André Schild Nov 08 '21 at 16:11

1 Answers1

2

There is a bug on 8.14.x version when scrolling grid with grid scroll element and grid has lazy data provider and a lot available hieght. Grid client element fetchs more than 500 rows. If I minimize grid no exception thrown. Exception img

  • when i use a Grid with more than 500 items i dont get this error. But with ListSelect and over 500 items i get this error. – d2k2 Aug 09 '22 at 11:06
  • I've noticed `TwinColSelect` is buggy on 8.14.3 too. – bekce Sep 19 '22 at 06:11