Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-43469

Integrity Checker throws exception when running complete test

    XMLWordPrintable

Details

    Description

      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

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

      Attachments

        Issue Links

          Activity

            People

              4d7ea414c7a1 Dmytro Kushniruk (Inactive)
              dsantos Daniel Santos
              Votes:
              29 Vote for this issue
              Watchers:
              45 Start watching this issue

              Dates

                Created:
                Updated: