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]

Solutions on the web9

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

    • 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(JsonContentHandler.java:84) at org.springframework.restdocs.payload.JsonContentHandler.findMissingFields(JsonContentHandler.java:50) at org.springframework.restdocs.payload.AbstractFieldsSnippet.validateFieldDocumentation(AbstractFieldsSnippet.java:113) at org.springframework.restdocs.payload.AbstractFieldsSnippet.createModel(AbstractFieldsSnippet.java:74) at org.springframework.restdocs.snippet.TemplatedSnippet.document(TemplatedSnippet.java:64) at org.springframework.restdocs.generate.RestDocumentationGenerator.handle(RestDocumentationGenerator.java:192) at org.springframework.restdocs.restassured.RestDocumentationFilter.filter(RestDocumentationFilter.java:63) at com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73) at com.jayway.restassured.filter.session.SessionFilter.filter(SessionFilter.java:60) at com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73) at org.springframework.restdocs.restassured.RestAssuredRestDocumentationConfigurer.filter(RestAssuredRestDocumentationConfigurer.java:65) at com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73) at com.jayway.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1574) at com.jayway.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy:159) at com.converge.docs.UserApiDocumentationSpec.$tt__$spock_feature_0_0(UserApiDocumentationSpec.groovy:73)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.