Error on upload PDF with restriction

Hi I am having error when upload PDF with restriction . Anyone can help ?

Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of method queueUploadFinished in com.haulmont.cuba.web.gui.components.WebFileMultiUploadField$$Lambda$1518/1878657085 failed.
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:729) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:399) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:363) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]
at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1217) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]
at com.haulmont.cuba.web.widgets.CubaFileUpload.fireQueueUploadFinished(CubaFileUpload.java:497) ~[cuba-web-widgets-7.2.20.jar:na]
at com.haulmont.cuba.web.widgets.CubaFileUpload$1.queueUploadFinished(CubaFileUpload.java:95) ~[cuba-web-widgets-7.2.20.jar:na]

Hi,
Please present full exception stack trace and message.
The snippet you’ve posted is not enough to understand the cause of the problem.

I have same problem but with image upload

com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method queueUploadFinished in com.haulmont.cuba.web.widgets.client.fileupload.CubaFileUploadServerRpc
"	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:157) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:115) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:442) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:407) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:275) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:83) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1636) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:465) [vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.haulmont.cuba.web.sys.CubaApplicationServlet.serviceAppRequest(CubaApplicationServlet.java:329) [cuba-web-7.2.19.jar:7.2.19]"
"	at com.haulmont.cuba.web.sys.CubaApplicationServlet.service(CubaApplicationServlet.java:215) [cuba-web-7.2.19.jar:7.2.19]"
"	at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [servlet-api.jar:4.0.FR]"
"	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.65]"
"	at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:108) [spring-web-5.2.20.RELEASE.jar:5.2.20.RELEASE]"
"	at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:74) [spring-web-5.2.20.RELEASE.jar:5.2.20.RELEASE]"
"	at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:93) [cuba-web-7.2.19.jar:7.2.19]"
"	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.65]"
"	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-websocket.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.65]"
"	at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.65]"
"	at com.haulmont.cuba.web.sys.singleapp.SingleAppWebContextLoader$SetClassLoaderFilter.doFilter(SingleAppWebContextLoader.java:236) [cuba-web-7.2.19.jar:7.2.19]"
"	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [catalina.jar:9.0.65]"
"	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [catalina.jar:9.0.65]"
"	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:9.0.65]"
"	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) [catalina.jar:9.0.65]"
"	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [catalina.jar:9.0.65]"
"	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) [catalina.jar:9.0.65]"
"	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) [tomcat-coyote.jar:9.0.65]"
"	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote.jar:9.0.65]"
"	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890) [tomcat-coyote.jar:9.0.65]"
"	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789) [tomcat-coyote.jar:9.0.65]"
"	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.65]"
"	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-util.jar:9.0.65]"
"	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-util.jar:9.0.65]"
"	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:9.0.65]"
"	at java.lang.Thread.run(Thread.java:750) [na:1.8.0_345]"
Caused by: java.lang.reflect.InvocationTargetException: null
"	at sun.reflect.GeneratedMethodAccessor609.invoke(Unknown Source) ~[na:na]"
"	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_345]"
"	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_345]"
"	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:153) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	... 44 common frames omitted"
Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of method queueUploadFinished in com.haulmont.cuba.web.gui.components.WebFileMultiUploadField$$Lambda$3518/1273906014 failed.
"	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:729) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:399) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:363) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1217) ~[vaadin-server-8.14.3-1-cuba.jar:8.14.3-1-cuba]"
"	at com.haulmont.cuba.web.widgets.CubaFileUpload.fireQueueUploadFinished(CubaFileUpload.java:497) ~[cuba-web-widgets-7.2.19.jar:na]"
"	at com.haulmont.cuba.web.widgets.CubaFileUpload$1.queueUploadFinished(CubaFileUpload.java:95) ~[cuba-web-widgets-7.2.19.jar:na]"```