org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getParts()Ljava/util/Collection;

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    javax.servlet.http.HttpServletRequest.getParts()Ljava/util/Collection error

    Stack Overflow | 6 months ago | Akash Raveendran
    org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getParts()Ljava/util/Collection;

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.servlet.http.HttpServletRequest.getParts()Ljava/util/Collection;

      at org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.parseRequest()
    2. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.parseRequest(StandardMultipartHttpServletRequest.java:92)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      2. org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.<init>(StandardMultipartHttpServletRequest.java:85)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      3. org.springframework.web.multipart.support.StandardMultipartHttpServletRequest.<init>(StandardMultipartHttpServletRequest.java:72)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      4. org.springframework.web.multipart.support.MultipartResolutionDelegate.adaptToMultipartHttpServletRequest(MultipartResolutionDelegate.java:80)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      5. org.springframework.web.multipart.support.MultipartResolutionDelegate.resolveMultipartArgument(MultipartResolutionDelegate.java:102)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      6. org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.resolveName(RequestParamMethodArgumentResolver.java:162)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      7. org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:98)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      8. org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      9. org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:161)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      10. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:128)[spring-web-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      10 frames
    3. Spring MVC
      DispatcherServlet.doDispatch
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)[spring-webmvc-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)[spring-webmvc-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)[spring-webmvc-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)[spring-webmvc-4.3.0.RELEASE.jar:4.3.0.RELEASE]
      5 frames