Clicking "Configure" on Rapid board will throw NullPointerException
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
The following appears in the atlassian-jira.log
:
1
2
3
4
5
2014-10-01 16:07:58,464 ajp-bio-11016-exec-13 ERROR D441139 967x38859x1 11pgs2u 172.29.218.119 /rest/greenhopper/1.0/rapidviewconfig/editmodel.json [web.rapid.view.RapidViewEditResource] Unable to complete GreenHopper REST method
java.lang.NullPointerException
at com.atlassian.greenhopper.service.workflow.SimplifiedWorkflowServiceImpl.getGreenHopperSimplifiedWorkflow(SimplifiedWorkflowServiceImpl.java:185)
at com.atlassian.greenhopper.web.rapid.workflow.WorkflowHelper.getGreenHopperSimplifiedWorkflow(WorkflowHelper.java:93)
at com.atlassian.greenhopper.web.rapid.workflow.WorkflowHelper.isRapidViewUsingGreenHopperSimplifiedWorkflow(WorkflowHelper.java:61) ....
Environment
Jira Software Server / Data Center 7.0.0 and any higher version.
Cause
There are workflow schemes pointing to projects which doesn't exist, as the null pointer is thrown because of this part of the code:
1
2
3
4
5
6
7
8
if (!projects.isEmpty())
{
Project p = projects.iterator().next();
if (!project.getId().equals(p.getId()))
{
return error(VALIDATION_FAILED, "gh.workflow.simple.workflow.error.exactly.one.project");
}
}
Resolution
⚠️Backup your database before running this Delete, as if anything goes wrong we can rollback your data to a previous working state.
Shutdown JIRA
Run the query below:
1
DELETE FROM nodeassociation WHERE sink_node_entity = 'WorkflowScheme' AND source_node_id NOT IN (SELECT id FROM project);
Start Jira
Was this helpful?