Trond Øydna
11/19/2021, 4:10 PMjava.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
using ktor-server-tests.
I've not been able to find any other reports of this error here or on YouTrack.
In the failing tests I'm making a mock request using io.ktor.server.testing.handleRequest
.
This has been working fine up until 1.6.5
Any ideas on what might cause this?
I've added more details in thread.
Edit: It seems it could be the JDK version, tests fail on 8 but not on 17.
My JVM target is 1.8 and I'm dependent on kotlin-stdlib-jdk8Compile:
ktor-server-core
ktor-server-netty
ktor-client-core
ktor-client-okhttp
ktor-client-serialization-jvm
ktor-serialization
ktor-client-auth-jvm
ktor-auth
ktor-auth-jwt
ktor-client-logging-jvm
ktor-metrics-micrometer
Test:
ktor-server-tests
Netty is 4.1.69 through ktor.
Kotlin version is 1.5.31
JDK version is 1.8_302Aleksei Tirman [JB]
11/19/2021, 5:13 PMTrond Øydna
11/19/2021, 5:23 PM