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

graphql-java-tools not working together with graphql-java-servlet (Version dependent) #545

Open
tastaturtier opened this issue Jun 30, 2021 · 0 comments
Labels

Comments

@tastaturtier
Copy link

examples.zip

Description

A runtime error (java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/JacksonFeature) occurs after adding com.graphql-java-kickstart:graphql-java-servlet as dependency. This is not the case for earlier versions of com.graphql-java-kickstart:graphql-java-servlet.

examples.zip contains minimal examples that produce this behaviour:

  • graphql-ok:
    • only dependency is com.graphql-java-kickstart:graphql-java-tools:11.0.1 (latest release).
    • io.dama.graphql.Main works.
  • graphql-still-ok:
    • additional dependency com.graphql-java-kickstart:graphql-java-servlet:10.1.0 together with com.graphql-java-kickstart:graphql-java-tools:6.3.0
    • lets io.dama.graphql.Main still in a working condition .
  • graphql-not-ok:
    • latest releases of the two dependencies (com.graphql-java-kickstart:graphql-java-servlet:11.1.1 and com.graphql-java-kickstart:graphql-java-tools:11.0.1)
    • makes io.dama.graphql.Main crash at runtime.

This behaviour is not specific to Java 16.

Expected behavior

No runtime error while running io.dama.graphql.Main with latest releases of the two dependencies (com.graphql-java-kickstart:graphql-java-servlet:11.1.1 and com.graphql-java-kickstart:graphql-java-tools:11.0.1) .

Actual behavior

see graphql-not-ok: io.dama.graphql.Main produces a java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/JacksonFeature

Steps to reproduce the bug

Build the 3 Maven projects in examples.zip and try to run io.dama.graphql.Main in each of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant