Unable to register portal instance, NullPointerException at TextEmbeddingFieldCreationPortalInstanceLifecycleListener
Written By
Jorge García Jiménez
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- When starting the portal we obtain below stacktrace that prevents from starting it correctly:
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
Resolution
- This error is caused because there are corrupted information in ElasticSearch indexes. You must delete the indexes and start the portal, after that, perform a full reindex.
Did this article resolve your issue ?