graphql-kotlin
graphql-kotlin copied to clipboard
GraalVM / GraphQL Expediagroup
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.
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