Data Limitation in Twin Column

Hi,

In Twin column when is try to load 900 rows it throws error as

Caused by: java.lang.IllegalStateException: Client tried fetch more rows than allowed. This is denied to prevent denial of service.

But when i try to load 200 record in twin column we are able to view data in twin column without any issue.

How to fix this as there should not be any data limitation in any component or any different component.

Hi,

Could you please attach a small demo project that reproduces the problem?

Regards,
Gleb

Hi,

As i checked vaadin code the maximum limit set is 500 for twin column any specific reason any other smart search component with select all option like twin column without data restriction or is it possible to increase count of 500 to 2500

package com.vaadin.data.provider;
public class DataCommunicator extends AbstractExtension {
private int maximumAllowedRows = 500;

/**
 * Set the maximum allowed rows to be fetched in one query.
 * 
 * @param maximumAllowedRows Maximum allowed rows for one query.
 * @since
 */
public void setMaximumAllowedRows(int maximumAllowedRows) {
    this.maximumAllowedRows = maximumAllowedRows;
}

}

Hi,

You can change this setting by obtaining wrapped Vaadin component, e.g.:

twinColumn.unwrap(AbstractListing.class)
        .getDataCommunicator().setMaximumAllowedRows(2500);

Regards,
Gleb

1 Like

Thank you Solution works.