com.atlassian.jira.exception.CreateException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException

JIRA | Albertini | 2 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

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-647].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}When I use a normal user, the script of script runner works but when I use oalbertini (administrator) the script doesn't work... here the error when I use oalbertini : {code:java} 2015-02-27 10:42:46,730 http-bio-8090-exec-13 ERROR oalbertini 642x5796x1 1xwhhou 192.168.100.212 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: ST-38045, actionId: 891, file: <inline script> com.atlassian.jira.exception.CreateException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:695) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:618) at com.atlassian.jira.issue.IssueManager$createIssue.call(Unknown Source) at com.atlassian.jira.issue.IssueManager$createIssue.call(Unknown Source) at Script1.run(Script1.groovy:51) Caused by: com.atlassian.jira.workflow.WorkflowException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:909) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:684) ... 4 more Caused by: com.opensymphony.workflow.WorkflowException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1523) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:879) ... 5 more Caused by: java.lang.NullPointerException at com.atlassian.jira.workflow.validator.AbstractPermissionValidator.hasUserPermission(AbstractPermissionValidator.java:49) at com.atlassian.jira.workflow.validator.PermissionValidator.validate(PermissionValidator.java:46) at com.atlassian.jira.workflow.SkippableValidator.validate(SkippableValidator.java:52) at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1512) ... 8 more 2015-02-27 10:42:51,123 ISSUE-indexQueue:thread-1 INFO oalbertini 671x925x1 m1jov7 192.9.244.160 /secure/admin/jira/IndexReIndex.jspa [action.admin.index.IndexAdminImpl] Re-indexing is 65% complete. Current index: Issue {code} here my script : {code:java} import com.atlassian.jira.user.UserUtils import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.link.IssueLink import com.atlassian.jira.util.ImportUtils import com.atlassian.crowd.embedded.api.User import com.opensymphony.workflow.WorkflowContext import org.apache.log4j.Category import com.atlassian.jira.issue.fields.CustomField log = Category.getInstance("com.onresolve.jira.groovy.CreateDependentIssue") // Configurable section def projectName = "Technician" // Name of project you want to create the issue in def CustomTechFieldName = "customfield_11812" def CustomLocationName = "customfield_10312" def CustomTerminalName = "customfield_11811" def customFieldManager = ComponentManager.getInstance().getCustomFieldManager() CustomField customFieldTech = customFieldManager.getCustomFieldObject(CustomTechFieldName) CustomField customFieldLocation = customFieldManager.getCustomFieldObject(CustomLocationName) CustomField customFieldTerminal = customFieldManager.getCustomFieldObject(CustomTerminalName) def customFieldTechVal = issue.getCustomFieldValue(customFieldTech).name def customFieldLocationVal = issue.getCustomFieldValue(customFieldLocation) def customFieldTerminalVal = issue.getCustomFieldValue(customFieldTerminal) // for other customisations change the code below issueMgr = ComponentManager.getInstance().getIssueManager() projectMgr = ComponentManager.getInstance().getProjectManager() String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller(); User currentUserObj = UserUtils.getUser(currentUser); def wasIndexing = ImportUtils.indexIssues ImportUtils.indexIssues = true issueFactory = ComponentManager.getInstance().getIssueFactory() newissue = issueFactory.getIssue() newissue.setSummary (issue.summary+"- "+customFieldTerminalVal) newissue.setProject (projectMgr.getProjectByName(projectName)) newissue.setIssueType (issue.getIssueType()) newissue.description = issue.description newissue.assignee = UserUtils.getUser(customFieldTechVal); newissue.reporter = issue.getAssignee() def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Location'} newissue.setCustomFieldValue(cf, issue.getCustomFieldValue(cf)) params = ["issue":newissue] subTask = issueMgr.createIssue(currentUserObj, params) println subTask.get("key") // get the current list of outwards depends on links to get the sequence number linkMgr = ComponentManager.getInstance().getIssueLinkManager() def sequence = 0 for (IssueLink link in linkMgr.getInwardLinks(issue.id)) { if ("Blocks" == link.issueLinkType.name) { sequence++; } } linkMgr = ComponentManager.getInstance().getIssueLinkManager() // TODO: Should check that 10000 is always the link id for Blocks linkMgr.createIssueLink (newissue.id, issue.id, 10000, sequence, currentUserObj) ImportUtils.indexIssues = wasIndexing {code}

    JIRA | 2 years ago | Albertini
    com.atlassian.jira.exception.CreateException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-647].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}When I use a normal user, the script of script runner works but when I use oalbertini (administrator) the script doesn't work... here the error when I use oalbertini : {code:java} 2015-02-27 10:42:46,730 http-bio-8090-exec-13 ERROR oalbertini 642x5796x1 1xwhhou 192.168.100.212 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: ST-38045, actionId: 891, file: <inline script> com.atlassian.jira.exception.CreateException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:695) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:618) at com.atlassian.jira.issue.IssueManager$createIssue.call(Unknown Source) at com.atlassian.jira.issue.IssueManager$createIssue.call(Unknown Source) at Script1.run(Script1.groovy:51) Caused by: com.atlassian.jira.workflow.WorkflowException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:909) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:684) ... 4 more Caused by: com.opensymphony.workflow.WorkflowException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1523) at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:879) ... 5 more Caused by: java.lang.NullPointerException at com.atlassian.jira.workflow.validator.AbstractPermissionValidator.hasUserPermission(AbstractPermissionValidator.java:49) at com.atlassian.jira.workflow.validator.PermissionValidator.validate(PermissionValidator.java:46) at com.atlassian.jira.workflow.SkippableValidator.validate(SkippableValidator.java:52) at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1512) ... 8 more 2015-02-27 10:42:51,123 ISSUE-indexQueue:thread-1 INFO oalbertini 671x925x1 m1jov7 192.9.244.160 /secure/admin/jira/IndexReIndex.jspa [action.admin.index.IndexAdminImpl] Re-indexing is 65% complete. Current index: Issue {code} here my script : {code:java} import com.atlassian.jira.user.UserUtils import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.link.IssueLink import com.atlassian.jira.util.ImportUtils import com.atlassian.crowd.embedded.api.User import com.opensymphony.workflow.WorkflowContext import org.apache.log4j.Category import com.atlassian.jira.issue.fields.CustomField log = Category.getInstance("com.onresolve.jira.groovy.CreateDependentIssue") // Configurable section def projectName = "Technician" // Name of project you want to create the issue in def CustomTechFieldName = "customfield_11812" def CustomLocationName = "customfield_10312" def CustomTerminalName = "customfield_11811" def customFieldManager = ComponentManager.getInstance().getCustomFieldManager() CustomField customFieldTech = customFieldManager.getCustomFieldObject(CustomTechFieldName) CustomField customFieldLocation = customFieldManager.getCustomFieldObject(CustomLocationName) CustomField customFieldTerminal = customFieldManager.getCustomFieldObject(CustomTerminalName) def customFieldTechVal = issue.getCustomFieldValue(customFieldTech).name def customFieldLocationVal = issue.getCustomFieldValue(customFieldLocation) def customFieldTerminalVal = issue.getCustomFieldValue(customFieldTerminal) // for other customisations change the code below issueMgr = ComponentManager.getInstance().getIssueManager() projectMgr = ComponentManager.getInstance().getProjectManager() String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller(); User currentUserObj = UserUtils.getUser(currentUser); def wasIndexing = ImportUtils.indexIssues ImportUtils.indexIssues = true issueFactory = ComponentManager.getInstance().getIssueFactory() newissue = issueFactory.getIssue() newissue.setSummary (issue.summary+"- "+customFieldTerminalVal) newissue.setProject (projectMgr.getProjectByName(projectName)) newissue.setIssueType (issue.getIssueType()) newissue.description = issue.description newissue.assignee = UserUtils.getUser(customFieldTechVal); newissue.reporter = issue.getAssignee() def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Location'} newissue.setCustomFieldValue(cf, issue.getCustomFieldValue(cf)) params = ["issue":newissue] subTask = issueMgr.createIssue(currentUserObj, params) println subTask.get("key") // get the current list of outwards depends on links to get the sequence number linkMgr = ComponentManager.getInstance().getIssueLinkManager() def sequence = 0 for (IssueLink link in linkMgr.getInwardLinks(issue.id)) { if ("Blocks" == link.issueLinkType.name) { sequence++; } } linkMgr = ComponentManager.getInstance().getIssueLinkManager() // TODO: Should check that 10000 is always the link id for Blocks linkMgr.createIssueLink (newissue.id, issue.id, 10000, sequence, currentUserObj) ImportUtils.indexIssues = wasIndexing {code}

    JIRA | 2 years ago | Albertini
    com.atlassian.jira.exception.CreateException: An unknown exception occured executing Validator com.atlassian.jira.workflow.SkippableValidator@2448ef3a: root cause: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.workflow.validator.AbstractPermissionValidator.hasUserPermission()
    2. com.atlassian.jira
      SkippableValidator.validate
      1. com.atlassian.jira.workflow.validator.AbstractPermissionValidator.hasUserPermission(AbstractPermissionValidator.java:49)
      2. com.atlassian.jira.workflow.validator.PermissionValidator.validate(PermissionValidator.java:46)
      3. com.atlassian.jira.workflow.SkippableValidator.validate(SkippableValidator.java:52)
      3 frames
    3. com.opensymphony.workflow
      AbstractWorkflow.initialize
      1. com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1512)
      2. com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1523)
      3. com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615)
      3 frames
    4. com.atlassian.jira
      IssueManager$createIssue.call
      1. com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:879)
      2. com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:684)
      3. com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:618)
      4. com.atlassian.jira.issue.IssueManager$createIssue.call(Unknown Source)
      5. com.atlassian.jira.issue.IssueManager$createIssue.call(Unknown Source)
      5 frames
    5. Unknown
      Script1.run
      1. Script1.run(Script1.groovy:51)
      1 frame