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

管理者は NoSuchGroupException でユーザーを偽装できません

written-by

Aaron Wang

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

問題

  • 管理者は、次のエラーで特定のユーザーを偽装できません:
NoSuchGroupException: No Group exists with the key {companyId=20155, classNameId=20005, classPK=20555}

Environment

  • Liferay ポータル 6.2

解決策

このエラーの考えられる理由の つは、ユーザーのグループ レコードがデータベースのgroup_ テーブルにないためです (データの破損)。 データ破損の問題の根本原因については、データベース ログをさらにチェックして、レコードが失われた時期と理由を確認する必要がある場合があります。

それに加えて、欠落しているレコード は、ユーザーを確認することで追加できます。 次の手順を参照してください:

  1. 上記のプロパティを portal-ext.properties に追加し、サーバーを再起動します。
verify.processes=com.liferay.portal.verify.VerifyUser
verify.frequency=-1

2. 次の INFO がログに出力されます。

06:56:07,164 INFO [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyUser

3. その後、管理者ユーザーはこのユーザーになりすますことができるはずです。

did-this-article-resolve-your-issue

legacy-knowledge-base