com.fasterxml.jackson.databind.exc.InputMismatchException: Can not deserialize instance of io.dropwizard.jersey.jackson.JsonProcessingExceptionMapperTest$BrokenRepresentation out of START_ARRAY token at [Source: ["hello"]; line: 1, column: 1]

GitHub | nickbabcock | 2 months ago
  1. 0

    GitHub comment 1404#252124829

    GitHub | 2 months ago | nickbabcock
    com.fasterxml.jackson.databind.exc.InputMismatchException: Can not deserialize instance of io.dropwizard.jersey.jackson.JsonProcessingExceptionMapperTest$BrokenRepresentation out of START_ARRAY token at [Source: ["hello"]; line: 1, column: 1]
  2. 0

    ACCEPT_SINGLE_VALUE_AS_ARRAY partially broken in 2.7.x, 2.8.x

    GitHub | 2 months ago | Spikhalskiy
    com.fasterxml.jackson.databind.exc.InputMismatchException: Can not construct instance of com.fasterxml.jackson.databind.creators.JsonCreatorWithCollectionTest$B, problem: no suitable constructor found, can not deserialize from Object value (missing default constructor or creator, or perhaps need to add/enable type information?) at [Source: [{"message":"site is missing from bid request (breq) object"}]; line: 1, column: 3] (through reference chain: java.util.ArrayList[0])

    Root Cause Analysis

    1. com.fasterxml.jackson.databind.exc.InputMismatchException

      Can not deserialize instance of io.dropwizard.jersey.jackson.JsonProcessingExceptionMapperTest$BrokenRepresentation out of START_ARRAY token at [Source: ["hello"]; line: 1, column: 1]

      at com.fasterxml.jackson.databind.exc.InputMismatchException.from()
    2. Jackson
      ObjectReader.readValue
      1. com.fasterxml.jackson.databind.exc.InputMismatchException.from(InputMismatchException.java:58)
      2. com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1354)
      3. com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1130)
      4. com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1082)
      5. com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1377)
      6. com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:174)
      7. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:150)
      8. com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1624)
      9. com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1218)
      9 frames
    3. Dropwizard Jersey Support
      JsonProcessingExceptionMapperTest.shouldBeInvalidDefinitionException
      1. io.dropwizard.jersey.jackson.JsonProcessingExceptionMapperTest.shouldBeInvalidDefinitionException(JsonProcessingExceptionMapperTest.java:146)
      1 frame