TextEmbeddingFieldCreationPortalInstanceLifecycleListener で NullPointerException が発生しました。
written-by
Jorge García Jiménez
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
ご覧のページは、お客様の利便性のために一部機械翻訳されています。また、ドキュメントは頻繁に更新が加えられており、翻訳は未完成の部分が含まれることをご了承ください。最新情報は都度公開されておりますため、必ず英語版をご参照ください。翻訳に問題がある場合は、こちら までご連絡ください。
問題
ポータルを起動すると、以下のようなスタックトレースが表示され、正しく起動できません:
2023-11-07 07:33:58.152 WARN [main][PortalInstanceLifecycleListenerManagerImpl:204] Unable to register portal instance {"mvccVersion": 6, "companyId": 20100, "userId": 0, "userName": "", "createDate": "Fri Nov 23 00:00:00 GMT 2018", "modifiedDate": "Thu Sep 14 08:55:36 GMT 2023", "webId": "liferay.com", "mx": "prueba.es", "homeURL": "", "logoId": 0, "maxUsers": 0, "active": true, "name": "Test Portal", "legalName": "Test Portal", "legalId": "", "legalType": "", "sicCode": "", "tickerSymbol": "", "industry": "", "type": "", "size": "", "indexNameCurrent": "", "indexNameNext": ""}
java.lang.NullPointerException: null
at com.liferay.search.experiences.internal.ml.embedding.instance.lifecycle.TextEmbeddingFieldCreationPortalInstanceLifecycleListener._hasTextEmbeddingDynamicTemplates(TextEmbeddingFieldCreationPortalInstanceLifecycleListener.java:103) ~[?:?]
at com.liferay.search.experiences.internal.ml.embedding.instance.lifecycle.TextEmbeddingFieldCreationPortalInstanceLifecycleListener.portalInstanceRegistered(TextEmbeddingFieldCreationPortalInstanceLifecycleListener.java:65) ~[?:?]
at com.liferay.portal.instance.lifecycle.internal.PortalInstanceLifecycleListenerManagerImpl.lambda$registerCompany$1(PortalInstanceLifecycleListenerManagerImpl.java:199) ~[?:?]
at com.liferay.portal.instance.lifecycle.internal.PortalInstanceLifecycleListenerManagerImpl._runIfNeeded(PortalInstanceLifecycleListenerManagerImpl.java:304) ~[?:?]
at com.liferay.portal.instance.lifecycle.internal.PortalInstanceLifecycleListenerManagerImpl.registerCompany(PortalInstanceLifecycleListenerManagerImpl.java:183) ~[?:?]
[...]
2023-11-07 07:34:00.845 ERROR [SystemExecutorServiceUtil-2][ServiceConfigurationInitializer:106] Unable to initialize service component
解像度
このエラーは、ElasticSearchのインデックスに破損した情報があるために発生します。 インデックスを削除してポータルを起動し、その後、完全な再インデックスを実行する必要があります。
did-this-article-resolve-your-issue