Comments (4)
Not sure where LinkedHashMap
is coming from?
The mentioned field io.leangen.graphql.spqr.spring.web.dto.GraphQLRequest#variables
is of type Map<String, Object>
, not LinkedHashMap
.
Do you have some strange Jackson configuration? Are you on version 0.0.3?
from graphql-spqr-spring-boot-starter.
I get a very similar error, trying to use
objectMapper.convertValue(map, MyClass.class);
Where MyClass has an Map<String,String> field
, which I am trying to set to an empty Map via "{}"
java.lang.IllegalArgumentException: Cannot construct instance of `java.util.LinkedHashMap`
(although at least one Creator exists):
no String-argument constructor/factory method to deserialize from String value ('{}')
at [Source: UNKNOWN; line: -1, column: -1]
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:3750) ~[jackson-databind-2.9.8.jar:2.9.8]
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:3668) ~[jackson-databind-2.9.8.jar:2.9.8]
from graphql-spqr-spring-boot-starter.
@nngo Wait... I don't see any GraphQL SPQR in your example. How does it relate? Can you post an example that reproduces the issue?
from graphql-spqr-spring-boot-starter.
@nngo I think I found what was causing issue. It is fixed in the next release of SPQR (0.10.0), so the next release of the Starter (0.0.5) should have the fix as well.
If you keep having problems, feel free to reopen.
from graphql-spqr-spring-boot-starter.
Related Issues (20)
- release 0.0.7 to maven central HOT 5
- Upgrade to Spring Boot v2.7.6 and SPQR v0.12.1 (graphql-java v20.0)
- Plan to update for Spring Boot 3 HOT 5
- Upgrade to 0.0.7 with springboot 2.7.6 Failing - Java Project HOT 1
- Disable introspection HOT 1
- Upgrade to graphql-spqr-spring-boot-starter:0.0.5+ and spring-boot v2.7.x fails with invalid schema issue HOT 1
- How to enable logging of exceptions
- Description for mutation parameters are empty in graphql playground HOT 3
- Spring Boot 3 Support? HOT 12
- failed to request http://localhost:8080/graphql caused by graphql.AssertException: query can't be null HOT 1
- Error starting v1.0.0 - ClassNotFoundException - SimplePerformantInstrumentation HOT 2
- How to test with GraphQlTester?
- GraphiQL 3.x integration in project HOT 2
- Failed with Spring Boot 3.2.0-RC2 HOT 5
- starter 1.0.1 - Duplicate type mappers of type .JsonArrayAdapter HOT 3
- Serialized OffsetDateTime has no time zone offset HOT 3
- GraphQLSchemaGenerator to graphqls file HOT 2
- IllegalStateException: At least one top-level operation source must be registered HOT 1
- Is graphql-spqr-spring-boot-starter 1.0.1 compatibile with spring boot 3.2.4? HOT 1
- PerConnectionApolloHandler sends wrong sub-protocol HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-spqr-spring-boot-starter.