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]

Stack Overflow | Sachidanand V. | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 9 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]

    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