legacy-knowledge-base
公開されました Jul. 2, 2025

Product Detail ポートレットが壊れ、nullpointerexception がログに出力される

written-by

Anishq Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 製品オプションが完了していない場合、製品詳細ポートレットが中断し、nullpointerexception がログに出力されます。
  • 再現する手順:
    • 1 と 2 の 2 つのバリエーションで REQUIRED オプションを指定して商品を作成する
    • すべての SKU を生成します。2 つの追加 SKU (1 と 2) が生成されます。
    • 2 つのバリエーション 1 と 2 を使用して、製品に追加の REQUIRED オプションを追加します。
    • [すべての SKU を生成] をもう一度クリックします。
    • これにより、2 つのオプションのすべての組み合わせ (11、12、21、22) に対して、4 つの追加 SKU が作成されるという効果があります。 ただし、ステップ 2 で生成された 2 つの SKU はそこに残り、2 番目のオプションでは空です。これらの 2 つの古い SKU は無効になり、ユーザーが製品の [すべてのバリエーションを表示] ボタンをクリックするとエラーが発生します。

Environment

  • Liferay Commerce-2.0.7

解決策

  • 観察された動作は既知の問題/バグであり、 はコマース 2.1.2 で解決されています
  • この問題に Hotfix が必要な場合は、パッチの詳細を添付して、Hotfix を要求するサポート チケットを作成してください。
did-this-article-resolve-your-issue

legacy-knowledge-base