FasterXML / jackson-datatype-joda

Extension module to properly support full datatype set of Joda datetime library
Apache License 2.0
140 stars 81 forks source link

Cannot deserialize value of type `org.joda.time.Interval` from Object value (token `JsonToken.START_OBJECT`) with Spring/GraphQL framework #131

Open ZeroWM opened 1 year ago

ZeroWM commented 1 year ago

plugins { id 'org.springframework.boot' version '2.7.5' } ext['spring-framework.version'] = '5.3.23'

implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:5.5.1")){exclude module: 'com.graphql-java'} implementation group: 'com.graphql-java', name: 'graphql-java', version: '19.2' implementation('joda-time:joda-time:2.10.3') implementation 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.13.4'

java project with graphql , i upgrade spring version and spring boot version, but i can not query map object with joda interval, use JsonTypeConverter with fasterxml jackson and register module (new JodaModule()); but when query throw exception Cannot deserialize value of type org.joda.time.Interval from Object value (token JsonToken.START_OBJECT), how can i solved it?

cowtowncoder commented 1 year ago

Sounds like a Spring problem: please use Spring forums for asking help.

Otherwise, we would need a stand-alone (no external dependencies) reproduction of the problem, showing exactly what is being done: description is not sufficient for this.