Code Monkey home page Code Monkey logo

Comments (4)

kaqqao avatar kaqqao commented on May 22, 2024

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.

nngo avatar nngo commented on May 22, 2024

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.

kaqqao avatar kaqqao commented on May 22, 2024

@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.

kaqqao avatar kaqqao commented on May 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.