Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZeroWM opened this issue Jul 10, 2023 · 1 comment

Comments

@ZeroWM
Copy link

ZeroWM commented Jul 10, 2023

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
Copy link
Member

cowtowncoder commented Jul 11, 2023

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.

@cowtowncoder cowtowncoder changed the title Cannot deserialize value of type org.joda.time.Interval from Object value (token JsonToken.START_OBJECT) Cannot deserialize value of type org.joda.time.Interval from Object value (token JsonToken.START_OBJECT) with Spring/GraphQL framework Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants