java.lang.IllegalArgumentException: Issue Type for issue with id '10121' is null.

Atlassian JIRA | Lucas Timm [Atlassian] | 4 years ago
  1. 0

    h3. Steps to reproduce: - Install JIRA 5.2.10; - Create a test issue (TEST-1); - Create a status "Test Status" and place it on the workflow; - Install GreenHopper, add a sprint, add the issue TEST-1; - Run the following SQL query: {code:sql} UPDATE jiraissue SET issuetype = '' WHERE pkey = 'TEST-1'; {code} h3. Current behavior: - When trying to browse the issue TEST-1: {noformat} java.lang.IllegalArgumentException: Issue Type for issue with id '10121' is null. at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:306) at com.atlassian.jira.permission.PermissionContextImpl.getRelevantStepDescriptor(PermissionContextImpl.java:76) at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:30) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:75) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:113) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:142) at sun.reflect.GeneratedMethodAccessor304.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy78.hasPermission(Unknown Source) (...) {noformat} - When trying to re-index: {noformat} java.lang.IllegalArgumentException: Issue Type for issue with id '58668' is null. at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:305) at com.atlassian.jira.permission.PermissionContextImpl.getRelevantStepDescriptor(PermissionContextImpl.java:76) at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:30) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:75) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:113) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} - When running Integrity Checker: {quote} Check Workflow Integrity PASSED: Check workflow entry states are correct Check workflow current step entries UNFIXABLE ERROR: The issue with key TEST-1 has a status of Test Status which is not a valid status for the issues workflow, contact Atlassian support to resolve this problem. (JRA-8326) PASSED: Check JIRA issues with null status {quote} h3. Expected behavior: - Integrity Checker should fix this error by both: # Add a "Unknown" issue status for the issue (it may require creating this issue status on JIRA, but it would be nice to avoid problems like that); # Inform the user the issue "TEST-1" has no issue type and suggest him to modify the issue type; # the "issuetype" column should be created with "NOT NULL". h3. Support considerations # You guys may think "why somebody could set the issue type as null for an issue?" -- However, it may happen accidentally during a bulk change, clone or another unexpected operation which is not a user fault; # There's two KBs for similar problems: - https://confluence.atlassian.com/display/GHKB/JIRA+throws+NullPointerException+when+Epic+Link+is+corrupted - https://confluence.atlassian.com/display/JIRAKB/Unable+to+Move+Issue+to+Another+Issue+Type+Due+to+%27The+issue+type+selected+is+invalid%27+Error

    Atlassian JIRA | 4 years ago | Lucas Timm [Atlassian]
    java.lang.IllegalArgumentException: Issue Type for issue with id '10121' is null.
  2. 0

    h3. Steps to reproduce: - Install JIRA 5.2.10; - Create a test issue (TEST-1); - Create a status "Test Status" and place it on the workflow; - Install GreenHopper, add a sprint, add the issue TEST-1; - Run the following SQL query: {code:sql} UPDATE jiraissue SET issuetype = '' WHERE pkey = 'TEST-1'; {code} h3. Current behavior: - When trying to browse the issue TEST-1: {noformat} java.lang.IllegalArgumentException: Issue Type for issue with id '10121' is null. at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:306) at com.atlassian.jira.permission.PermissionContextImpl.getRelevantStepDescriptor(PermissionContextImpl.java:76) at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:30) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:75) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:113) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:142) at sun.reflect.GeneratedMethodAccessor304.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy78.hasPermission(Unknown Source) (...) {noformat} - When trying to re-index: {noformat} java.lang.IllegalArgumentException: Issue Type for issue with id '58668' is null. at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:305) at com.atlassian.jira.permission.PermissionContextImpl.getRelevantStepDescriptor(PermissionContextImpl.java:76) at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:30) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:75) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:113) at com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} - When running Integrity Checker: {quote} Check Workflow Integrity PASSED: Check workflow entry states are correct Check workflow current step entries UNFIXABLE ERROR: The issue with key TEST-1 has a status of Test Status which is not a valid status for the issues workflow, contact Atlassian support to resolve this problem. (JRA-8326) PASSED: Check JIRA issues with null status {quote} h3. Expected behavior: - Integrity Checker should fix this error by both: # Add a "Unknown" issue status for the issue (it may require creating this issue status on JIRA, but it would be nice to avoid problems like that); # Inform the user the issue "TEST-1" has no issue type and suggest him to modify the issue type; # the "issuetype" column should be created with "NOT NULL". h3. Support considerations # You guys may think "why somebody could set the issue type as null for an issue?" -- However, it may happen accidentally during a bulk change, clone or another unexpected operation which is not a user fault; # There's two KBs for similar problems: - https://confluence.atlassian.com/display/GHKB/JIRA+throws+NullPointerException+when+Epic+Link+is+corrupted - https://confluence.atlassian.com/display/JIRAKB/Unable+to+Move+Issue+to+Another+Issue+Type+Due+to+%27The+issue+type+selected+is+invalid%27+Error

    Atlassian JIRA | 4 years ago | Lucas Timm [Atlassian]
    java.lang.IllegalArgumentException: Issue Type for issue with id '10121' is null.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Issue Type for issue with id '10121' is null.

      at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow()
    2. com.atlassian.jira
      AbstractPermissionManager.hasPermission
      1. com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:306)
      2. com.atlassian.jira.permission.PermissionContextImpl.getRelevantStepDescriptor(PermissionContextImpl.java:76)
      3. com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:30)
      4. com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:75)
      5. com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:113)
      6. com.atlassian.jira.security.AbstractPermissionManager.hasPermission(AbstractPermissionManager.java:142)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor304.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. com.atlassian.util
      ObjectProfiler.profiledInvoke
      1. com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83)
      1 frame
    5. com.atlassian.jira
      SwitchingInvocationHandler.invoke
      1. com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
      1 frame
    6. Unknown
      $Proxy78.hasPermission
      1. $Proxy78.hasPermission(Unknown Source)
      1 frame