com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type java.time.Instant from String "2015-02-15T10:15:00Z[GMT]": Text '2015-02-15T10:15:00Z[GMT]' could not be parsed, unparsed text found at index 20 at [Source: "2015-02-15T10:15:00Z[GMT]"; line: 1, column: 1]

GitHub | bjornharvold | 8 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

    jackson-datatype-jsr310 v2.8.1 fails on converting a String with timezone

    GitHub | 8 months ago | bjornharvold
    com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not deserialize value of type java.time.Instant from String "2015-02-15T10:15:00Z[GMT]": Text '2015-02-15T10:15:00Z[GMT]' could not be parsed, unparsed text found at index 20 at [Source: "2015-02-15T10:15:00Z[GMT]"; line: 1, column: 1]

    Root Cause Analysis

    1. com.fasterxml.jackson.databind.exc.InvalidFormatException

      Can not deserialize value of type java.time.Instant from String "2015-02-15T10:15:00Z[GMT]": Text '2015-02-15T10:15:00Z[GMT]' could not be parsed, unparsed text found at index 20 at [Source: "2015-02-15T10:15:00Z[GMT]"; line: 1, column: 1]

      at java.time.format.DateTimeFormatter.parseResolved0()
    2. Java RT
      DateTimeFormatter.parse
      1. java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1952)
      2. java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1777)
      2 frames
    3. Jackson-Datatype-JSR310
      InstantDeserializer.deserialize
      1. com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer.deserialize(InstantDeserializer.java:198)
      2. com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer.deserialize(InstantDeserializer.java:48)
      2 frames
    4. Jackson
      ObjectMapper.readValue
      1. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789)
      2. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2833)
      2 frames
    5. com.traveliko.platform
      JacksonConfigTest.testZonedDateTime
      1. com.traveliko.platform.base.config.JacksonConfigTest.testZonedDateTime(JacksonConfigTest.java:77)
      1 frame