-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 6.4.1, 6.4.12, 7.1.2, 7.1.9, 7.3.1
-
Component/s: System Administration - Integrity Checker
-
6.04
-
134
-
Severity 3 - Minor
-
12
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Symptoms
When using the Database Integrity Checker a stack trace is generated.
The following may be found within the atlassian-jira.log:
com.atlassian.jira.appconsistency.integrity.exception.IntegrityException: Error occurred while performing check. at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.doCheck(WorkflowCurrentStepCheck.java:167) at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.preview(WorkflowCurrentStepCheck.java:54) at com.atlassian.jira.appconsistency.integrity.IntegrityChecker.preview(IntegrityChecker.java:63) at com.atlassian.jira.appconsistency.integrity.IntegrityChecker.previewWithIds(IntegrityChecker.java:35) at com.atlassian.jira.web.action.admin.IntegrityChecker.doExecute(IntegrityChecker.java:71) ... Caused by: java.lang.NullPointerException at com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.getSchemeForProject(DefaultWorkflowSchemeManager.java:382) at com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.getWorkflowName(DefaultWorkflowSchemeManager.java:350) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflowName(OSWorkflowManager.java:166) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:554) at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.doCheck(WorkflowCurrentStepCheck.java:111) ...
Cause
This is caused by an issue row in the jiraissue table that referred to a project id for a Project that no longer exists in the database.
Workaround
- Run the "Check Issue for Relation 'RelatedOSWorkflowEntry'" check first;
- Fix any entries that are returned;
- Run the "Check Issue for Relation 'ParentProject'" check;
- Fix any entries that are returned;
- At this point the complete test can be run.