com.alibaba.fastjson.JSONException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ZonedDateTime反序列化报错
    via GitHub by anjia0532
    ,
  • GitHub comment 220#157708646
    via GitHub by faustas
    ,
  • Date parsing is failing
    via Stack Overflow by jcm
    ,
    • com.alibaba.fastjson.JSONException: Text '2017-01-04 13:21:39' could not be parsed at index 10 at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:643) at com.alibaba.fastjson.JSON.parseObject(JSON.java:339) at com.alibaba.fastjson.JSON.parseObject(JSON.java:243) at com.alibaba.fastjson.JSON.parseObject(JSON.java:456) at demo.main(demo.java:179) Caused by: java.time.format.DateTimeParseException: Text '2017-01-04 13:21:39' could not be parsed at index 10 at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949) at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851) at java.time.ZonedDateTime.parse(ZonedDateTime.java:597) at java.time.ZonedDateTime.parse(ZonedDateTime.java:582) at com.alibaba.fastjson.parser.deserializer.Jdk8DateCodec.deserialze(Jdk8DateCodec.java:95) at com.alibaba.fastjson.parser.deserializer.DefaultFieldDeserializer.parseField(DefaultFieldDeserializer.java:66) at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.parseField(JavaBeanDeserializer.java:722) at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:568) at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:187) at com.alibaba.fastjson.parser.deserializer.JavaBeanDeserializer.deserialze(JavaBeanDeserializer.java:183) at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:639) ... 4 more

    Users with the same issue

    Unknown visitor1 times, last one,
    aidoan
    3 times, last one,
    Casper
    1 times, last one,
    Axelo
    1 times, last one,
    johnxfly
    2 times, last one,
    9 more bugmates