Lee Grey
10/11/2024, 9:03 PMException in thread "main" java.lang.NoSuchMethodError: 'kotlinx.io.files.Path kotlinx.io.files.FileSystem.resolve(kotlinx.io.files.Path)'
at io.ktor.server.engine.ServerEngineUtilsKt.<clinit>(ServerEngineUtils.kt:9)
at io.ktor.server.engine.EmbeddedServerKt.embeddedServer$default(EmbeddedServer.kt:73)
at com.greymatter.sfad.ApplicationKt.main(Application.kt:9)
at com.greymatter.sfad.ApplicationKt.main(Application.kt)
package com.greymatter.sfad
import com.greymatter.sfad.plugins.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
fun main() {
embeddedServer(Netty, port = 8080, host = "0.0.0.0", module = Application::module) // line 9
.start(wait = true)
}
fun Application.module() {
configureSecurity()
configureHTTP()
configureMonitoring()
configureSerialization()
configureDatabases()
configureSockets()
configureAdministration()
configureRouting()
}
It might help to know that this is a multi-rooted project that began as a Multiplatform project, and I just decided to switch the backend to Ktor and the frontend to KMP Web, so the whole thing is in flux. This could be related to something I’ve done wrong in one of the build.gradle.kts files. Any clues would be greatly appreciated.mbonnin
10/11/2024, 10:29 PMLee Grey
10/12/2024, 1:01 AM% ./gradlew run
> Task :run FAILED
Exception in thread "main" java.lang.NoSuchMethodError: 'io.ktor.server.config.ApplicationConfig io.ktor.server.config.ConfigLoader$Companion.load$default(io.ktor.server.config.ConfigLoader$Companion, java.lang.String, int, java.lang.Object)'
at io.ktor.server.engine.CommandLineKt.buildApplicationConfig(CommandLine.kt:110)
at io.ktor.server.engine.CommandLineKt.CommandLineConfig(CommandLine.kt:41)
at io.ktor.server.netty.EngineMain.main(EngineMain.kt:20)
FAILURE: Build failed with an exception.
mbonnin
10/12/2024, 10:48 PMmbonnin
10/12/2024, 10:48 PM