問題
- DXP 7.3から7.4へのアップグレード後、以下のエラーが表示されます:
2023-10-24 17:28:16.854 ERROR [SCR Component Actor][ROOT:47] bundle com.liferay.portal.properties.swapper:5.0.24 (179)[com.liferay.portal.properties.swapper.internal.SwapDefaultGuestGroupLogoPortalInstanceLifecycleListener(11661)] : The activate method has thrown an exception
java.lang.IllegalStateException: Unable to get default company ID
at com.liferay.portal.kernel.instance.PortalInstancePool.getDefaultCompanyId(PortalInstancePool.java:40) ~[portal-kernel.jar:?]
at com.liferay.portal.util.PortalInstances.getDefaultCompanyId(PortalInstances.java:226) ~[portal-impl.jar:?]
at com.liferay.portal.util.PortalImpl.getDefaultCompanyId(PortalImpl.java:2356) ~[portal-impl.jar:?]
at com.liferay.portal.properties.swapper.internal.SwapDefaultGuestGroupLogoPortalInstanceLifecycleListener.activate(SwapDefaultGuestGroupLogoPortalInstanceLifecycleListener.java:82) ~[?:?]
[...]
環境
- Liferay DXP 7.4
解決
- 主な問題は、portal-ext.properties のプロパティ
company.default.web.id=
の値が webIdではなく companyId に設定されていることです。 - この問題を解決するには、このプロパティを コントロールパネル > システム > 仮想インスタンス にある Web Id 値で設定する必要があります。
追加情報