com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException

JIRA | Heidi Asbrand | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hello, We recently bought this plugin and created a workflow that creates 7 subtasks upon ticket creation. I linked that project to a mail handler and everything was working great (love the plugin). The mail handler would create the ticket and the subtasks were created. Over this last weekend we upgraded from Jira 5.2.4.1 to 5.2.8 (we also upgraded Greenhopper). Now unfortunately when trying to create the ticket via the mailhandler I get the following error in the atlassian-jira-incoming-mail.log: 2013-04-09 14:12:55,945 WARN [HRNotify] QuartzWorker-0 ServiceRunner HRNotify HRNotify[10760]: Unable to create issue with message. com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:451) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:517) at com.atlassian.jira.service.util.handler.DefaultMessageHandlerContext.createIssue(DefaultMessageHandlerContext.java:73) at com.atlassian.jira.service.services.mail.DelegatingMessageHandlerContext.createIssue(DelegatingMessageHandlerContext.java:47) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:242) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:252) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.atlassian.jira.workflow.WorkflowException at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:848) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:440) ... 13 more Caused by: java.lang.NullPointerException at org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCreateFunction.java:205) at org.swift.jira.cot.functions.CreateSubIssueFunction.conditionallyCreate(CreateSubIssueFunction.java:95) at org.swift.jira.cot.functions.AbstractCreateFunction.execute(AbstractCreateFunction.java:151) at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050) at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:807) I can manually create the issue just fine. In case it is helpful, I am not using the create issue post workflow function, only the create subtask post workflow function. It is a strange problem and I am having difficulty tracking down the root cause. I have simplified the subtasks, and the tickets being created are very simple. Can you help?

    JIRA | 4 years ago | Heidi Asbrand
    com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException
  2. 0

    Hello, We recently bought this plugin and created a workflow that creates 7 subtasks upon ticket creation. I linked that project to a mail handler and everything was working great (love the plugin). The mail handler would create the ticket and the subtasks were created. Over this last weekend we upgraded from Jira 5.2.4.1 to 5.2.8 (we also upgraded Greenhopper). Now unfortunately when trying to create the ticket via the mailhandler I get the following error in the atlassian-jira-incoming-mail.log: 2013-04-09 14:12:55,945 WARN [HRNotify] QuartzWorker-0 ServiceRunner HRNotify HRNotify[10760]: Unable to create issue with message. com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:451) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:517) at com.atlassian.jira.service.util.handler.DefaultMessageHandlerContext.createIssue(DefaultMessageHandlerContext.java:73) at com.atlassian.jira.service.services.mail.DelegatingMessageHandlerContext.createIssue(DelegatingMessageHandlerContext.java:47) at com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.handleMessage(CreateIssueHandler.java:242) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:368) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:271) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:252) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.atlassian.jira.workflow.WorkflowException at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:848) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:440) ... 13 more Caused by: java.lang.NullPointerException at org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCreateFunction.java:205) at org.swift.jira.cot.functions.CreateSubIssueFunction.conditionallyCreate(CreateSubIssueFunction.java:95) at org.swift.jira.cot.functions.AbstractCreateFunction.execute(AbstractCreateFunction.java:151) at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050) at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:807) I can manually create the issue just fine. In case it is helpful, I am not using the create issue post workflow function, only the create subtask post workflow function. It is a strange problem and I am having difficulty tracking down the root cause. I have simplified the subtasks, and the tickets being created are very simple. Can you help?

    JIRA | 4 years ago | Heidi Asbrand
    com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.swift.jira.cot.functions.AbstractCreateFunction.createIssue()
    2. org.swift.jira
      AbstractCreateFunction.execute
      1. org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCreateFunction.java:205)
      2. org.swift.jira.cot.functions.CreateSubIssueFunction.conditionallyCreate(CreateSubIssueFunction.java:95)
      3. org.swift.jira.cot.functions.AbstractCreateFunction.execute(AbstractCreateFunction.java:151)
      3 frames
    3. com.opensymphony.workflow
      AbstractWorkflow.initialize
      1. com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
      2. com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
      3. com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615)
      3 frames
    4. com.atlassian.jira
      OSWorkflowManager.createIssue
      1. com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:807)
      1 frame