graphql-kotlin icon indicating copy to clipboard operation
graphql-kotlin copied to clipboard

GraalVM / GraphQL Expediagroup

Open fmorissette-equisoft opened this issue 2 years ago • 0 comments

Library Version com.expediagroup:graphql-kotlin-schema-generator:5.3.2

Describe the bug Everything work has expected when comes the time to run it using GraalVM. The schema generator is crashing with this:

Caused by: io.github.classgraph.ClassGraphException: Uncaught exception during scan at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1606) at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1623) at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1636) at com.expediagroup.graphql.generator.internal.state.ClassScanner.(ClassScanner.kt:36) at com.expediagroup.graphql.generator.SchemaGenerator.(SchemaGenerator.kt:52)

The issue occurs during the call to toFederatedSchema(config, queries, emptyList())

The reflection causes the problem at runtime. Tried to setup GraalVM with build-time compilation

Seems related to this same issue: https://github.com/ExpediaGroup/graphql-kotlin/issues/1224

To Reproduce Steps to reproduce the behavior. Please provide:

  • compiling the library with GraalVM 22.0.0.2
  • running the final generated binary
  • Asking for the whatever graphql request

Expected behavior Should properly return the GraphQL result even within GraalVM

fmorissette-equisoft avatar May 10 '22 21:05 fmorissette-equisoft