Ktor: Error:Kotlin: [Internal Error] java.lang.LinkageError: loader constraint violation: loader (instance of org/jetbrains/kotlin/cli/jvm/plugins/PluginURLClassLoader$SelfThenParentURLClassLoader) previously initiated loading for a different type with name "kotlin/sequences/Sequence"

Created on 8 Aug 2019  路  7Comments  路  Source: ktorio/ktor

Ktor Version and Engine Used (client or server and name)

Ktor version 1.2.3
Server Engine Netty
Server Templating Html DSL & freemaker
Client Apache Http Client Engine & Http Client Engine
java version openjdk version "1.8.0_222"
Linux ubuntu version 16.04

Describe the bug
After creating a project in https://start.ktor.io.
The project does not run.

To Reproduce
Create a project and run the project.

Expected behavior
After creating a ktor project it should run.
The project created Github Repo link

Screenshots
Screenshot of error stacktrace.

image 1

image 2

bug

Most helpful comment

It got fixed by updating the kotlin version in intellij

All 7 comments

I've also met the same situation.

Feedback on the above bug would be much appreciated.
@MistRay how did you resolve the error.

I have also met the same situation.
Any update?

It got fixed by updating the kotlin version in intellij

Updating the Kotlin version on IntelliJ also worked for me

@Arthur-Kamau Try updating the version of the Kotlin plugin in your IDEA

Updating kotlin version solved the issue for me too

Was this page helpful?
0 / 5 - 0 ratings