org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 1048576 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2040542) exceeds the configured maximum (1048576)

spring.io | 4 months ago
  1. 0

    how to handle MaxUploadSizeExceededException: Maximum upload.... - Spring Forum

    spring.io | 4 months ago
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 1048576 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2040542) exceeds the configured maximum (1048576)
  2. 0

    There is no error in the build log indicating that artifact was not uploaded because its size exceeds limit

    YouTrack | 9 years ago
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 200000000 bytes exceeded; nest> at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.jav> at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver>
  3. 0

    Handling MaxUploadSizeExceededException in Spring webapp

    Stack Overflow | 2 years ago | TheJudge
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 500000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (1065736) exceeds the configured maximum (500000)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to nicely handle file upload MaxUploadSizeExceededException with Spring Security

    Stack Overflow | 3 years ago | xtian
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 1000000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (3403852) exceeds the configured maximum (1000000)
  6. 0

    Handling MaxUploadSizeExceededException in Spring webapp

    wenda.io | 1 year ago
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 500000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (1065736) exceeds the configured maximum (500000)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException

    the request was rejected because its size (2040542) exceeds the configured maximum (1048576)

    at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>()
  2. Apache Commons FileUpload
    ServletFileUpload.parseRequest
    1. org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:797)
    2. org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:323)
    3. org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:341)
    4. org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
    4 frames
  3. Spring
    CommonsMultipartResolver.resolveMultipart
    1. org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:165)
    2. org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:149)
    2 frames
  4. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:1006)
    2. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:851)
    3. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    4. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    5. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    5 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    2 frames
  6. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    8 frames
  7. Grizzly HTTP
    LeaderFollowerWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    4 frames
  8. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    1 frame
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame