Robert
05/20/2022, 7:58 AMCaused by: java.lang.ClassCastException at SchemaPrinter.java:762
Dariusz Kuc
05/20/2022, 2:21 PMSaurav Tapader
05/20/2022, 2:21 PMDariusz Kuc
05/20/2022, 3:06 PMgraphql-java
so it kind of looks like you got classpath problem with graphql-java
and not springRobert
05/20/2022, 6:46 PMDariusz Kuc
05/20/2022, 7:03 PMgraphql-kotlin 5.4.1
depends on graphql-java 17.2
but it only increments count in the schema printer (https://github.com/graphql-java/graphql-java/blob/v17.2/src/main/java/graphql/schema/idl/SchemaPrinter.java#L762)
In the latest graphql-java
(18.1) it attempts to get list of predicates -> https://github.com/graphql-java/graphql-java/blob/v18.1/src/main/java/graphql/schema/idl/SchemaPrinter.java#L762 which used to be Predicate<GraphQLDirective>
(in old version) and are now just Predicate<String>
graphql-java
dependency to 18.1
so you could try that6.0.0-alpha.4
Robert
05/20/2022, 7:07 PMDariusz Kuc
05/20/2022, 7:10 PMRobert
05/20/2022, 7:12 PMDariusz Kuc
05/20/2022, 7:31 PMRobert
05/20/2022, 8:16 PMid("io.spring.dependency-management") version "1.0.11.RELEASE"
here it comes fromcom.expediagroup:graphql-kotlin-spring-server:6.0.0-alpha.4
works againDariusz Kuc
05/20/2022, 8:37 PMplatform
dep)Robert
05/20/2022, 9:44 PMI think it's up to date
Dariusz Kuc
05/20/2022, 10:05 PMRobert
05/21/2022, 8:06 AM