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

codegur.com | 4 months ago
  1. 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]
  2. 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]
  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

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

    Root Cause Analysis

    1. org.springframework.restdocs.payload.PayloadHandlingException

      com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x20 at [Source: [B@3793896e; line: 30, column: 23]

      at com.fasterxml.jackson.core.JsonParser._constructError()
    2. Jackson-core
      UTF8StreamJsonParser.getText
      1. com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1419)
      2. com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:508)
      3. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidOther(UTF8StreamJsonParser.java:3223)
      4. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidOther(UTF8StreamJsonParser.java:3230)
      5. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._decodeUtf8_3fast(UTF8StreamJsonParser.java:3036)
      6. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString2(UTF8StreamJsonParser.java:2216)
      7. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString(UTF8StreamJsonParser.java:2165)
      8. com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:279)
      8 frames
    3. Jackson
      ObjectMapper.readValue
      1. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:441)
      2. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:574)
      3. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:423)
      4. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapArray(UntypedObjectDeserializer.java:510)
      5. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:437)
      6. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:552)
      7. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:423)
      8. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3066)
      9. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2230)
      9 frames
    4. org.springframework.restdocs
      RestDocumentationResultHandler.handle
      1. org.springframework.restdocs.payload.JsonContentHandler.readContent(JsonContentHandler.java:81)
      2. org.springframework.restdocs.payload.JsonContentHandler.findMissingFields(JsonContentHandler.java:49)
      3. org.springframework.restdocs.payload.AbstractFieldsSnippet.validateFieldDocumentation(AbstractFieldsSnippet.java:112)
      4. org.springframework.restdocs.payload.AbstractFieldsSnippet.createModel(AbstractFieldsSnippet.java:73)
      5. org.springframework.restdocs.snippet.TemplatedSnippet.document(TemplatedSnippet.java:64)
      6. org.springframework.restdocs.mockmvc.RestDocumentationResultHandler.handle(RestDocumentationResultHandler.java:101)
      6 frames
    5. Spring TestContext
      MockMvc$1.andDo
      1. org.springframework.test.web.servlet.MockMvc$1.andDo(MockMvc.java:158)
      1 frame