Unknown exception java.lang.NullPointerException: when trying to create plan from Project in Advanced Roadmap
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When trying to create a plan with Issue sources as Project, an Unknown exception java.lang.NullPointerException is received
Unknown exception
java.lang.NullPointerException: (no message)
at com.atlassian.rm.jpo.env.projects.DefaultDeepJiraProject.create:109
at com.atlassian.rm.jpo.env.projects.DeepJiraProjectTransformation.createNewInstance:29
at com.atlassian.rm.jpo.env.projects.DeepJiraProjectTransformation.createNewInstance:7
at com.atlassian.rm.jpo.env.projects.BaseJiraProjectTransformation.apply:20
at com.atlassian.rm.jpo.env.projects.BaseJiraProjectTransformation.apply:8
at com.google.common.collect.Iterators$6.transform:785
at com.google.common.collect.TransformedIterator.next:47
at com.google.common.collect.Iterators.addAll:358
at com.google.common.collect.Lists.newArrayList:147
at com.google.common.collect.Lists.newArrayList:133
at com.atlassian.rm.jpo.env.projects.JiraProjectService.getDeepProjectsById:128
at com.atlassian.rm.jpo.core.project.DefaultProjectService.getDeepProjectsById:75
at com.atlassian.rm.jpo.core.issuesource.context.DefaultIssueSourceContextService.getProjectInfosForIssueSources:61
at com.atlassian.rm.jpo.rest.service.plan.setup.projects.PlanSetupProjectsRestEndpoint.getProjects:51
at jdk.internal.reflect.GeneratedMethodAccessor10367.invoke:-1
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke:-1
at java.lang.reflect.Method.invoke:-1
Environment
- Jira Software v8.20.x
Diagnosis
Based on the traces in the logs, the affected project's workflows have missed linked statuses.
Cause
The code invoked when the java.lang.NullPointerException is received is trying to check the Workflow linked statuses.
Solution
- Verify by going to the Project Settings and check the workflow that is being used by that project, and view the workflow as text to confirm there is any missing status.
- If there are any missing statuses, please follow the steps mentioned in the Resolution part of this KB: Unable to utilize imported or restored workflow in Jira server