rsocket / rsocket-kotlin

RSocket Kotlin multi-platform implementation
http://rsocket.io
Apache License 2.0
553 stars 37 forks source link

NoSuchMethodError when application is compiled with Kotlin 1.5.0-RC #151

Closed ikolomiets closed 3 years ago

ikolomiets commented 3 years ago
Exception in thread "main" java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.getSeconds(int)'
    at io.rsocket.kotlin.keepalive.KeepAlive.<init>(KeepAlive.kt:22)
    at io.rsocket.kotlin.core.RSocketConnectorBuilder$ConnectionConfigBuilder.<init>(RSocketConnectorBuilder.kt:70)
    at io.rsocket.kotlin.core.RSocketConnectorBuilder.<init>(RSocketConnectorBuilder.kt:28)
    at io.rsocket.kotlin.core.RSocketConnectorBuilderKt.RSocketConnector(RSocketConnectorBuilder.kt:112)
    at io.rsocket.kotlin.core.RSocketConnectorBuilderKt.RSocketConnector$default(RSocketConnectorBuilder.kt:111)
    at io.rsocket.kotlin.transport.ktor.client.RSocketSupport$Config.<init>(RSocketSupport.kt:30)
    at io.rsocket.kotlin.transport.ktor.client.RSocketSupport$Feature.prepare(RSocketSupport.kt:36)
    at io.rsocket.kotlin.transport.ktor.client.RSocketSupport$Feature.prepare(RSocketSupport.kt:33)
    at io.ktor.client.HttpClientConfig$install$3.invoke(HttpClientConfig.kt:72)
    at io.ktor.client.HttpClientConfig$install$3.invoke(HttpClientConfig.kt:18)
    at io.ktor.client.HttpClientConfig.install(HttpClientConfig.kt:92)
    at io.ktor.client.HttpClient.<init>(HttpClient.kt:168)
    at io.ktor.client.HttpClient.<init>(HttpClient.kt:81)
    at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:43)

I have the following rsocket-kotlin versions:

    implementation("io.rsocket.kotlin:rsocket-core:0.12.0")
    implementation("io.rsocket.kotlin:rsocket-transport-ktor:0.12.0")
    implementation("io.rsocket.kotlin:rsocket-transport-ktor-client:0.12.0")
    implementation("io.rsocket.kotlin:rsocket-transport-ktor-server:0.12.0")