legacy-knowledge-base
公開されました Jun. 30, 2025

アップグレード後にデフォルトのcompany IDを取得できないエラーが発生します。

written-by

Pooja Bhambani

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

問題

  • Liferay DXP 7.4 update 40からupdate 75以上にアップグレードした後、Liferay 以外のユーザー ドメインのコンソールに次のエラーが表示されます:
    ERROR [main][BatchEngineUnitProcessorImpl:279] Unable to get default company ID com.liferay.portal.kernel.exception.NoSuchCompanyException: No Company exists with the key {webId=gmail.com}  
    at com.liferay.portal.service.persistence.impl.CompanyPersistenceImpl.findByWebId(CompanyPersistenceImpl.java:117) ~[portal-impl.jar:?]

    at com.liferay.portal.service.impl.CompanyLocalServiceImpl.getCompanyByWebId(CompanyLocalServiceImpl.java:611) ~[portal-impl.jar:?]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_221]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_221]

    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_221]

環境

  • Liferay DXP 7.4

解決

  • この問題の原因は、以前のバージョンではデフォルトのcompanyドメインが gmail.com で作成されたことです。ただし、アップデート 75 以降ではいくつかの変更があり、そのプロパティを明示的に設定する必要があります。そうしないと、デフォルトで liferay.com が使用されます。
  • この問題を解決するために、アップグレードクライアントツールを実行する前に、 company.default.web.id=gmail.comtools/portal-tools-db-upgrade-client/portal-upgrade-ext.properties に追加する必要があります。
    注: ユーザーは、前回のアップデートで使用したドメインを指定する必要があります。
  • さらに、アップグレードを適切に実行するために、 company.default.web.id を含むすべての関連プロパティを、 portal-upgrade-ext.propertiesファイルにコピーする必要があります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base