-
Bug
-
Resolution: Fixed
-
High
-
10.3.3
-
16
-
Severity 3 - Minor
-
55
-
Issue Summary
The customer is experiencing crashes during Assets imports due to a NullPointerException in the method 'getErrorMessages()' of the ObjectTypeResult class, which prevents import results from being saved and causes cluster locks to remain active.
Steps to Reproduce
- . Run Assets imports.
- Wait for the imports to finish.
Expected Results
Assets imports finish successfully, write import result into DB without exception, cluster locks are released.
Actual Results
The below exception is thrown in the log file:
2025-04-10 20:02:05,230+0000 insight-InsightThreadGroup-worker-thread-24 WARN app_jira_dba [c.r.j.p.i.s.imports.common.DefaultImportService] Unable to create progress result. java.lang.NullPointerException: Cannot invoke "java.util.Collection.size()" because the return value of "com.riadalabs.jira.plugins.insight.services.imports.common.ObjectTypeResult.getErrorMessages()" is null at com.riadalabs.jira.plugins.insight.services.core.dal.impl.ProgressDalImpl.persistImportOTResult(ProgressDalImpl.java:353) at com.riadalabs.jira.plugins.insight.services.core.dal.impl.ProgressDalImpl.persistProgressResult(ProgressDalImpl.java:306) at com.riadalabs.jira.plugins.insight.services.progress.service.ResultRepositoryImpl.consumeResultAndClearInFlight(ResultRepositoryImpl.java:156) at com.riadalabs.jira.plugins.insight.services.progress.service.ResultRepositoryImpl.persistAndClearInFlight(ResultRepositoryImpl.java:142) at com.riadalabs.jira.plugins.insight.services.imports.common.DefaultImportService.doImportFromSource(DefaultImportService.java:873) at com.riadalabs.jira.plugins.insight.services.imports.common.DefaultImportService.lambda$_startImport$1(DefaultImportService.java:760) at com.atlassian.jira.util.thread.JiraThreadLocalUtils.lambda$wrap$2(JiraThreadLocalUtils.java:194) at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)
Workaround
Restart the node that is dedicated for Assets Imports.
Versions Tested
Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below:
| Testing Requirements | Version | Affected Version |
|---|---|---|
| Customers Reported Version | 10.3.3 | Yes |
| Most Recent Bug-Fix Release | ||
| Previous Major Release | ||
| Most Recent LTS | ||
| Previous Supported LTS | ||
| Other Versions.. | ||
| (Add rows as needed) |
- links to