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

JSONWSでエラー発生時にエラーメッセージが表示されない

written-by

Shimada Taro

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

問題

  • JSONWSでエラー発生時にエラーメッセージが表示されません
  • 存在しない「companyId」を指定した場合等、エラーメッセージを表示しません
  • DXP 7.0の場合、エラーメッセージを表示する場合があります

環境

  • DXP 7.1+

解決

  • 本件はLPS-81571に関連した事象で、期待した動作となります
  • セキュリティ上の理由から、内部情報(エラーなど)をJSONWSの結果(UIにレンダリングされるもの)に返すことはありません

追加情報

  • 以下のコンポーネントのログレベルを「DEBUG」に設定することで、Lifelayログ上にDebugログとしてエラーメッセージをスローすることが可能です

com.liferay.portal.jsonwebservice.JSONWebServiceServiceAction

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base