Denied to prevent denial of service exception

Hi,

Jmix 1.5

I had created dataGrid to view the data. But when i am trying to fetch 650 records i am getting This is denied to prevent denial of service exception.

How to handled data of more than 500 to view as i checked in DataCommunicator class there is 500 max rows restriction.


ERROR i.j.u.e.DefaultExceptionHandler.handle:81 - [ajp-nio-0.0.0.0-8009-exec-1184] Unhandled exception
com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method requestRows in com.vaadin.shared.data.DataRequestRpc
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:157)
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:115)
Caused by: java.lang.reflect.InvocationTargetException: null
	at jdk.internal.reflect.GeneratedMethodAccessor1522.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:153)
	... 105 common frames omitted
Caused by: 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:315)
	at com.vaadin.data.provider.DataCommunicator$SimpleDataRequestRpc.requestRows(DataCommunicator.java:75)
	... 109 common frames omitted

Hi,

In the UI Samples app, we have an example of displaying 1000 rows using a DataGrid. No special configuration is needed to display this amount of data.

Regards,
Gleb

1 Like