Integrity Checker trows exception when running complete test

XMLWordPrintable

    • 26
    • Severity 3 - Minor

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? 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

      1. Run the "Check Issue for Relation 'RelatedOSWorkflowEntry'" check first;
      2. Fix any entries that are returned;
      3. At this point the complete test can be run.

            Assignee:
            Unassigned
            Reporter:
            Daniel Santos (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: