NoSuchMethodError: Duration.Companion.fromRawValue-UwyO8pc with Kotlin 2.3
メンテナーはふだん 1 日以内に返信
@faraz152 がすでに取り組んでいます。
2026年3月30日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
調査の方向性
Start by reproducing the reported NoSuchMethodError with OkHttp 5.3.2 on Kotlin 2.3.x, then inspect the stack-trace path through DurationKt.toDuration and CacheControl. The issue provides no failing test or reproduction project, so first establish a focused reproducer; done means resolving the crash while retaining compatibility with the reported Kotlin versions.
索引モデルが issue の本文から書いたものです。
説明
Good bug reports include a failing test! Writing a test helps you to isolate and describe the problem, and it helps us to fix it fast. Bug reports without a failing test or reproduction steps are likely to be closed.
| Component | Kotlin Version | Result |
|---|---|---|
| IntelliJ 2025.3.1 | 2.3.10/2.3.20 | Bundled stdlib |
| OkHttp 5.3.2. | 2.2.21 | Compiled against old Duration internals |
| Outcome | Crash | NoSuchMethodError: fromRawValue-UwyO8pc |
my dependency tree showing Kotlin 2.3.10 forcing over 2.2.x
...
+--- org.jetbrains.kotlin:kotlin-stdlib:2.3.10
| +--- org.jetbrains.kotlin:kotlin-stdlib:2.2.0 -> 2.3.10 ()
| --- org.jetbrains.kotlin:kotlin-stdlib:2.2.0 -> 2.3.10 ()
| | --- org.jetbrains.kotlin:kotlin-stdlib:2.2.20 -> 2.3.10 ()
| --- org.jetbrains.kotlin:kotlin-stdlib:2.2.21 -> 2.3.10 ()
| | --- org.jetbrains.kotlin:kotlin-stdlib:2.2.21 -> 2.3.10 ()
| --- org.jetbrains.kotlin:kotlin-stdlib:2.2.21 -> 2.3.10 ()
...
{code:java}
2026-03-02 16:07:12,159 [ 66530] SEVERE - #c.i.i.p.PluginManager - 'long kotlin.time.Duration$Companion.fromRawValue-UwyO8pc$kotlin_stdlib(long)'
java.lang.NoSuchMethodError: 'long kotlin.time.Duration$Companion.fromRawValue-UwyO8pc$kotlin_stdlib(long)'
at kotlin.time.DurationKt.durationOfNanos(Duration.kt:1593)
at kotlin.time.DurationKt.toDuration(Duration.kt:969)
at okhttp3.internal._CacheControlCommonKt.commonForceCache(-CacheControlCommon.kt:65)
at okhttp3.CacheControl.(CacheControl.kt:276)
at okhttp3.Request.cacheControl(Request.kt:126)
at okhttp3.internal.cache.CacheStrategy$Factory.compute(CacheStrategy.kt:131)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:54)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:85)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:74)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at com.xxx.company.network.interceptors.BasicAuthInterceptor.intercept(BasicAuthInterceptor.java:51)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:126)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:226)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:178)
{code}
- 主要言語
- Kotlin
- スター
- 47.1k
- フォーク
- 9.3k
- 平均マージ
- 18時間 18分
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lysine-dev/okhttp のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
lysine-dev/okhttp#9788 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
lysine-dev/okhttp#9761 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Remove crossinline `addInterceptor` and `addNetworkInterceptor` overloads対応中かも @Amir-Golmoradi が 6 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
lysine-dev/okhttp#9779 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
HTTP/2 Data padding is not counted toward the connection flow-control window. This deadlocks connections with peers that pad.対応中かも @Amir-Golmoradi が 6 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
lysine-dev/okhttp#9772 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
lysine-dev/okhttp#9760 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
lysine-dev/okhttp の issue をすべて見る
似ている issue
-
:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing testオープンbuild/ci front-end:kotlin
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bisq-network/bisq-mobile#1948 ·
メンテナーはふだん 1 日以内に返信
-
bug-pending-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NativeScript/NativeScript#11525 ·
メンテナーはふだん 1 日以内に返信
-
afk-ok area:data-quality importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
enorm-labs/event-junkie#3301 ·
メンテナーはふだん 1 日以内に返信
-
Negate special case for Long literals uses the wrong value対応中かも @bryantaustin13 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
cqframework/clinical_quality_language#1865 ·
メンテナーはふだん 8 日以内に返信