Repository navigation
OKAPI-1271: NPE TenantManager.jobRunPending .isExclusive - #1493
Open
julianladisch wants to merge 2 commits into
Open
julianladisch wants to merge 2 commits into
julianladisch wants to merge 2 commits into
Conversation
Okapi v7.0.14 failed when trying to install any module: ``` Cannot invoke "org.folio.okapi.bean.ModuleDescriptor.getSystemInterface(String)" because "md" is null java.lang.NullPointerException: Cannot invoke "org.folio.okapi.bean.ModuleDescriptor.getSystemInterface(String)" because "md" is null at org.folio.okapi.managers.TenantManager.isExclusive(TenantManager.java:1055) at org.folio.okapi.managers.TenantManager.jobRunPending(TenantManager.java:1084) at org.folio.okapi.managers.TenantManager.lambda$jobInvoke$67(TenantManager.java:1118) at io.vertx.core.Future.future(Future.java:224) at org.folio.okapi.managers.TenantManager.jobInvoke(TenantManager.java:1118) at org.folio.okapi.managers.TenantManager.lambda$runJob$60(TenantManager.java:1011) at io.vertx.core.impl.future.Composition.complete(Composition.java:40) ``` Restarting Okapi worked around the issue. The solution is to test for null to avoid the NullPointerException.
julianladisch
requested review from
adamdickmeiss,
barbaraloehle and
steveellis
November 13, 2026 11:01
|
adamdickmeiss
requested changes
Nov 13, 2026
| if (md == null) { | ||
| logger.info("jobRunPending skips TenantModuleDescriptor id={} " | ||
| + "because ModuleDescriptor is null", tm.getId()); | ||
| continue; |
Contributor
There was a problem hiding this comment.
Suggested change
| continue; | |
| tm.setMessage("skipped because ModuleDescriptor is null"); | |
| continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Okapi v7.0.14 failed when trying to install any module:
Restarting Okapi worked around the issue.
The solution is to test for null to avoid the NullPointerException.