-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.12.10
-
1
-
Severity 3 - Minor
-
Issue Summary
In certain unknown circumstances, the import process result records this NullPointerException where somehow it finds the getStarted() value to be NULL:
java.lang.NullPointerException: Cannot invoke "java.util.Date.toInstant()" because the return value of "com.riadalabs.jira.plugins.insight.services.imports.common.ImportResult.getStarted()" is null
Steps to Reproduce
Step to reproduce by introducing corruption in database:
- Create a simple CSV import config
- Attach a debugger and put a breakpoint at RestBeanAssemblerImpl.java:599
- Start the import and it will hit the breakpoint immediately
- make the STARTED column NULL in the AO_8542F1_IFJ_PRG_RES table:
- Resume the program/disconnect the debugger
Expected Results
Assets handles the NULL in STARTED column gracefully
Actual Results
The below exception is thrown in the atlassian-jira.log file:
2024-11-14 06:41:12,176+0000 http-nio-8080-exec-24 url: /jsm/rest/insight/1.0/progress/result/objectschema/2; user: admin ERROR admin 401x759x1 p8bdnl 172.29.187.89,172.50.0.3 /rest/insight/1.0/progress/result/objectschema/2 [c.r.j.p.i.c.w.a.r.exception.mapper.DefaultMapper] Unexpected exception was thrown while processing the request java.lang.NullPointerException: Cannot invoke "java.util.Date.toInstant()" because the return value of "com.riadalabs.jira.plugins.insight.services.imports.common.ImportResult.getStarted()" is null at com.riadalabs.jira.plugins.insight.channel.web.api.rest.transformation.RestBeanAssemblerImpl.assembleImportResultEntry(RestBeanAssemblerImpl.java:599) at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.progress.ProgressAssemblerInJira.assembleResultEntry(ProgressAssemblerInJira.java:42) at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.progress.ProgressAssemblerBase.assembleProgressResultEntries(ProgressAssemblerBase.java:58) at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.progress.ProgressResource.getAllProgressResultForObjectSchema(ProgressResource.java:341)
Steps to introducing the NULL value in cache is not known
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
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 | 5.12.10 | Yes |
Most Recent Bug-Fix Release | ||
Previous Major Release | ||
Most Recent LTS | ||
Previous Supported LTS | ||
Other Versions.. | ||
(Add rows as needed) |
- is caused by
-
JSDSERVER-15679 Introduce null-safety to Assets import result assembler
- Gathering Interest
- is related to
-
JSDSERVER-15463 Process results for import show incorrect date
- Closed
- links to
- mentioned in
-
Page Loading...