java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;

Spring JIRA | Johannes Graham | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;

      at org.springframework.web.filter.ShallowEtagHeaderFilter.isEligibleForEtag()
    2. Spring
      CompositeFilter$VirtualFilterChain.doFilter
      1. org.springframework.web.filter.ShallowEtagHeaderFilter.isEligibleForEtag(ShallowEtagHeaderFilter.java:153)[spring-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      2. org.springframework.web.filter.ShallowEtagHeaderFilter.updateResponse(ShallowEtagHeaderFilter.java:102)[spring-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      3. org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:84)[spring-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      4. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      5. org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:112)[spring-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      5 frames