Hi! I'm having issue running my Ktor server, here ...
# ktor
t
Hi! I'm having issue running my Ktor server, here is the error.
Exception in thread "main" java.lang.NoSuchMethodError: 'void kotlinx.coroutines.internal.LockFreeLinkedListHead.addLast(kotlinx.coroutines.internal.LockFreeLinkedListNode)'
There is already an active issue https://youtrack.jetbrains.com/issue/KTOR-7054/NoSuchMethodError-when-using-coroutines-1.9.0-RC but no solution was provided. I've tried downgrading Kotlinx Coroutines & Ktor server but none worked
a
Removing the coroutines dependency was the solution in my case. But if Ktor doesn't leak the kotlinx-coroutines dependency, then you'll have to get the specific version of the coroutines dependency your Ktor version is using.
t
Yeah actually originally kotlinx coroutines wasn't in my project so I think it was leaked by something else, the codebase is undergoing a big rewrite and literally just a bit ago is when I fixed all the errors and finally tried running for the first time & it just broke
I found the dependency leaking kotlinx and removed it, fixed it
👍 1
337 Views