You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.
com.fasterxml.jackson.jr.ob.JSONObjectException: Can not get long numeric value from JSON (to construct java.util.Date) from 'null'
{"id":3,"firstName":"John","lastName":"Roe","birthdate":null,"__op":"c","__db":"app","__table":"Person","__ts_ms":1591958881311,"__deleted":"false"}"; line: 1, column: 57]
at com.fasterxml.jackson.jr.ob.JSONObjectException.from(JSONObjectException.java)
at com.fasterxml.jackson.jr.ob.impl.SimpleValueReader._fetchLong(SimpleValueReader.java)
at com.fasterxml.jackson.jr.ob.impl.SimpleValueReader.read(SimpleValueReader.java)
at com.fasterxml.jackson.jr.ob.impl.SimpleValueReader.readNext(SimpleValueReader.java)
at com.fasterxml.jackson.jr.ob.impl.BeanReader.read(BeanReader.java)
at com.fasterxml.jackson.jr.ob.impl.JSONReader.readBean(JSONReader.java)
at com.fasterxml.jackson.jr.ob.JSON.beanFrom(JSON.java)
at com.hazelcast.jet.json.JsonUtil.beanFrom(JsonUtil.java:85)
...
The text was updated successfully, but these errors were encountered:
looks like jackson-jr does not support reading null date as it always expects a long value.
see comment here FasterXML/jackson-jr#48 (comment)
drawback of using a jr json library. JsonFormat annotation does not work too since jackson-jr supports only a subset of jackson-annotations, which does not include JsonFormat.
The text was updated successfully, but these errors were encountered: