org.springframework.restdocs.payload.PayloadHandlingException: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: [B@2c6adbe3; line: 1, column: 1]

  1. 0

    Grails 3.1.8 : Spring Rest Docs using Rest Assured giving PayloadHandlingException: com.fasterxml.jackson.databind.JsonMappingException

    Stack Overflow | 4 months ago | Sachidanand V.
    org.springframework.restdocs.payload.PayloadHandlingException: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: [B@2c6adbe3; line: 1, column: 1]
  2. 0

    Poor diagnostics when attempting to document the fields of a request or response with an empty body

    GitHub | 5 months ago | fwilhe
    org.springframework.restdocs.payload.PayloadHandlingException: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: [B@4a50d04a; line: 1, column: 0]
  3. 0

    Documenting byte[] response in Spring Rest Docs

    Stack Overflow | 3 months ago | Tatha
    org.springframework.restdocs.payload.PayloadHandlingException: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Hello': was expecting ('true', 'false' or 'null') at [Source: [B@13866865; line: 1, column: 11]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JsonParseException: Invalid UTF-8 middle byte 0x20 with MockMVC and Maven

    codegur.com | 4 months ago
    org.springframework.restdocs.payload.PayloadHandlingException: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x20 at [Source: [B@3793896e; line: 30, column: 23]
  6. 0

    JsonParseException: Invalid UTF-8 middle byte 0x20 with MockMVC and Maven

    Stack Overflow | 9 months ago | Francesco Papagno
    org.springframework.restdocs.payload.PayloadHandlingException: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x20 at [Source: [B@3793896e; line: 30, column: 23]

    Root Cause Analysis

    1. org.springframework.restdocs.payload.PayloadHandlingException

      com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: [B@2c6adbe3; line: 1, column: 1]

      at org.springframework.restdocs.payload.JsonContentHandler.readContent()
    2. org.springframework.restdocs
      RestDocumentationFilter.filter
      1. org.springframework.restdocs.payload.JsonContentHandler.readContent(JsonContentHandler.java:84)
      2. org.springframework.restdocs.payload.JsonContentHandler.findMissingFields(JsonContentHandler.java:50)
      3. org.springframework.restdocs.payload.AbstractFieldsSnippet.validateFieldDocumentation(AbstractFieldsSnippet.java:113)
      4. org.springframework.restdocs.payload.AbstractFieldsSnippet.createModel(AbstractFieldsSnippet.java:74)
      5. org.springframework.restdocs.snippet.TemplatedSnippet.document(TemplatedSnippet.java:64)
      6. org.springframework.restdocs.generate.RestDocumentationGenerator.handle(RestDocumentationGenerator.java:192)
      7. org.springframework.restdocs.restassured.RestDocumentationFilter.filter(RestDocumentationFilter.java:63)
      7 frames
    3. REST Assured
      FilterContextImpl.next
      1. com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73)
      2. com.jayway.restassured.filter.session.SessionFilter.filter(SessionFilter.java:60)
      3. com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73)
      3 frames
    4. org.springframework.restdocs
      RestAssuredRestDocumentationConfigurer.filter
      1. org.springframework.restdocs.restassured.RestAssuredRestDocumentationConfigurer.filter(RestAssuredRestDocumentationConfigurer.java:65)
      1 frame
    5. REST Assured
      RequestSpecificationImpl.get
      1. com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73)
      2. com.jayway.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1574)
      3. com.jayway.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy:159)
      3 frames
    6. com.converge.docs
      UserApiDocumentationSpec.$tt__$spock_feature_0_0
      1. com.converge.docs.UserApiDocumentationSpec.$tt__$spock_feature_0_0(UserApiDocumentationSpec.groovy:73)
      1 frame