Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

An occasional problem:Unable to load implementation class JsonFormat

オープン
#570 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
api, backend

調査の方向性

まず、EventFormatProvider.getInstance().resolveFormat(JsonFormat.CONTENT_TYPE)、JsonFormat の実装、および SPI の登録経路を追跡します。報告された deployment とバージョンを使って、影響を受けたノードと正常なノードの動作を比較します。断続的なロード失敗を再現または説明し、具体的な修正変更を特定できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

needs-user-input

I have a cluster that deploys the same image, with a total of six nodes. Occasionally, some nodes do not load the JsonFormat class,
The relevant codes are as follows

EventFormat eventFormat = EventFormatProvider.getInstance()
                    .resolveFormat(JsonFormat.CONTENT_TYPE);
            if (eventFormat == null) {
                logger.info("resolveFormat failed,force retry..");
                eventFormat = new JsonFormat().withForceNonJsonDataToString();
                if (eventFormat != null) {
                    logger.info("resolveFormat failed,retry success..");
                }
                EventFormatProvider.getInstance().registerFormat(eventFormat);
                return eventFormat;

i observed that the SPI mechanism did not take effect on the problem node and manually instantiated the successful log of the JsonFormat class.
I can't understand why this situation occurs. It occurs relatively infrequently, but it does exist. The current solution is not elegant enough, and I hope to receive help.

this is my version
image

主要言語
Java
スター
446
フォーク
172
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudevents/sdk-java のほかの issue

cloudevents/sdk-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。