Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE Encountered While Loading Elasticsearch Entities During Application Startup #651

Open
puru-khedre opened this issue Feb 17, 2025 · 0 comments · May be fixed by #652
Open

NPE Encountered While Loading Elasticsearch Entities During Application Startup #651

puru-khedre opened this issue Feb 17, 2025 · 0 comments · May be fixed by #652

Comments

@puru-khedre
Copy link

Issue:

On Moqui start by ./gradlew run, I attempt to load the Elasticsearch entities by setting startup-add-missing="true", but it results in an NPE. After investigating, I found that the failure happens because Moqui’s elasticFacade is not yet initialized at the time of loading these entities.

Root Cause:

Moqui requires the elasticFacade to be initialized in order to load the Elasticsearch entities, but this facade is not initialized at the point where the entities are being loaded. Specifically, the elasticFacade is initialized after the postFacadeInit() call, but the entities are loaded before that, leading to the NPE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant