Servlet filter adapter: Runtime exception "max buffer reached ..." on a file upload request after session timeout

I have a simple form for a file upload in a Tomcat web application using the servlet filter adapter for securing the application. Submitting the request after the session timeout is reached I get a runtime exception (“max buffer reached on a saved request”), when the request gets saved in “FilterSesseionStore.saveRequest()” and the request body length (i. e. the file size) exceeds “maxBuffer”. Is there a way to solve this problem? Thanks