java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

Spring JIRA | Chris Tosspon | 12 months ago
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.

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Integer cannot be cast to java.lang.String

      at org.springframework.mock.web.MockHttpServletResponse.setSpecialHeader()
    2. Spring TestContext
      MockHttpServletResponse.setSpecialHeader
      1. org.springframework.mock.web.MockHttpServletResponse.setSpecialHeader(MockHttpServletResponse.java:513)
      1 frame