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

Spring JIRA | Johannes Graham | 2 years ago
  1. 0

    ClassCastException in 2.1.x version when using WireMock.equalToXml()

    Google Groups | 6 months ago | Vipin Jose
    java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Minimum supported Servlet version?

    GitHub | 2 years ago | martin-g
    java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getHeader(Ljava/lang/String;)Ljava/lang/String;

    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. 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