Clicking "Configure" on Rapid board will throw NullPointerException
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
Symptoms
The following appears in the atlassian-jira.log
:
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:
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:
DELETE FROM nodeassociation WHERE sink_node_entity = 'WorkflowScheme' AND source_node_id NOT IN (SELECT id FROM project);
- Start Jira