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

Generic NPE error without details on product/variant import

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
backend

調査の方向性

まず、既存の product slug と重複した variant key を使って、issue に記載された import を再現し、その後、汎用的な NPE がどこで生成されるかを追跡します。両方の失敗を commercetools の import response と比較して、関連するエラー詳細を特定します。完了条件は、呼び出し元が拒否された各 import について具体的な理由を受け取ることです。

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

説明

Describe the bug
When we try to import a new product and one of the variants on the product has the same key the import fails but there is no detailed message as to why. The same is the case when we try to import a new product with an existing SLUG, there is always the same, generic error message. This was working before but seems like in some update of the library or on Commercetools side it just gives generic NPE.

This is an issue when we need to report to the calling system why did the import fail.

To Reproduce
Steps to reproduce the behavior:

  1. Import a new product with the same Slug as an existing product
  2. NPE happens without any details

Expected behavior
Error details

Screenshots

Image

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

環境構築

はじめの一歩

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

commercetools/commercetools-sync-java のほかの issue

commercetools/commercetools-sync-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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