Closed delmania closed 5 years ago
Have you specified the kotlin version as described here: https://github.com/graphql-java-kickstart/graphql-spring-boot#warning-noclassdeffounderror-when-using-graphql-java-tools--54x? Could be it's caused by the same thing.
Hello, I'm attempting to use the latest version in a Spring Boot application using Kotlin. When I try to run, I get the following error:
`
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
The following method did not exist:
The method's class, kotlinx.coroutines.Dispatchers, is available from the following locations:
It was loaded from the following location:
Action:
Correct the classpath of your application so that it contains a single, compatible version of kotlinx.coroutines.Dispatchers `
My dependencies are
dependencies { implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("org.postgresql:postgresql:42.2.6") implementation("org.springframework.boot:spring-boot-starter-web") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") implementation("org.jetbrains.kotlin:kotlin-reflect") implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") testImplementation("org.springframework.boot:spring-boot-starter-test") implementation("com.graphql-java-kickstart:graphql-spring-boot-starter:5.10.0") implementation("com.graphql-java-kickstart:graphiql-spring-boot-starter:5.10.0") implementation("io.arrow-kt:arrow-ank:0.9.0") }
Looking at dependency map, it looks like GraphHQL-Java-Tool is bring in its own version of the Couroutines?