legacy-knowledge-base
Publicado Jul. 25, 2002

Error message is not displayed when an error occurs in 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

Issue

  • Error message is not displayed when an error occurs in JSONWS
  • Do not display error messages, e.g. if you specify "companyId" which does not exist.
  • DXP 7.0 may display an error message

Environment

  • DXP 7.1+

solution

  • This is an event related toLPS-81571and is expected behavior
  • For security reasons, internal information (e.g. errors) is not returned in the JSONWS results (what is rendered in the UI)

Additional Information

  • It is possible to throw error messages as a Debug log on the Lifelay log by setting the log level to "DEBUG" for the following components

com.liferay.portal.jsonwebservice.JSONWebServiceServiceAction

did-this-article-resolve-your-issue

legacy-knowledge-base