java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124)

Atlassian JIRA | Vincent Chin [Atlassian] | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h3.Summary When attempting to use the said post function, the post function doesn't set the value of the reporter field based on the value of the parent also it returns *Copy Field value to parent* error. There are 2 problems here when attempting to set the Reporter field value . * Reporter field is not set based on parent issue Reporter field value. * *Set Field Value from Parent* is returning an error for *Copy Field Value to Parent*. h3. Steps to Reproduce # Modify an existing project workflow; add the *Set Field Value from Parent* to the create issue transition. # Attempt to create a sub-task from an existing issue in the project. h3. Expected Results Sub-task reporter field is set to the parent ticket reporter h3.Actual Results Sub-task reporter is not set and when checking the logs, logs shows error for another post function, *Copy Field Value to Parent*. {quote} 2015-09-10 14:17:05.910418500 2015-09-10 14:17:05,904 ajp-nio-127.0.0.104-8009-exec-88 WARN sysadmin 857x19079x1 1hgmn2g 202.68.74.170,104.192.140.242 /secure/QuickCreateIssue.jspa [c.i.j.plugins.functions.CopyFieldValueFromParentFunction] Error while executing Copy Field Value to Parent function: java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910421500 java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124) 2015-09-10 14:17:05.910433500 at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050) 2015-09-10 14:17:05.910433500 at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446) 2015-09-10 14:17:05.910436500 at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) 2015-09-10 14:17:05.910437500 at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:879) 2015-09-10 14:17:05.910437500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:737) 2015-09-10 14:17:05.910438500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:636) 2015-09-10 14:17:05.910439500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:198) 2015-09-10 14:17:05.910440500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:163) 2015-09-10 14:17:05.910440500 ... 3 filtered {quote}

    Atlassian JIRA | 1 year ago | Vincent Chin [Atlassian]
    java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124)
  2. 0

    h3.Summary When attempting to use the said post function, the post function doesn't set the value of the reporter field based on the value of the parent also it returns *Copy Field value to parent* error. There are 2 problems here when attempting to set the Reporter field value . * Reporter field is not set based on parent issue Reporter field value. * *Set Field Value from Parent* is returning an error for *Copy Field Value to Parent*. h3. Steps to Reproduce # Modify an existing project workflow; add the *Set Field Value from Parent* to the create issue transition. # Attempt to create a sub-task from an existing issue in the project. h3. Expected Results Sub-task reporter field is set to the parent ticket reporter h3.Actual Results Sub-task reporter is not set and when checking the logs, logs shows error for another post function, *Copy Field Value to Parent*. {quote} 2015-09-10 14:17:05.910418500 2015-09-10 14:17:05,904 ajp-nio-127.0.0.104-8009-exec-88 WARN sysadmin 857x19079x1 1hgmn2g 202.68.74.170,104.192.140.242 /secure/QuickCreateIssue.jspa [c.i.j.plugins.functions.CopyFieldValueFromParentFunction] Error while executing Copy Field Value to Parent function: java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910421500 java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124) 2015-09-10 14:17:05.910433500 at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050) 2015-09-10 14:17:05.910433500 at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446) 2015-09-10 14:17:05.910436500 at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) 2015-09-10 14:17:05.910437500 at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:879) 2015-09-10 14:17:05.910437500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:737) 2015-09-10 14:17:05.910438500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:636) 2015-09-10 14:17:05.910439500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:198) 2015-09-10 14:17:05.910440500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:163) 2015-09-10 14:17:05.910440500 ... 3 filtered {quote}

    Atlassian JIRA | 1 year ago | Vincent Chin [Atlassian]
    java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124)

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81) 2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124)

      at com.opensymphony.workflow.AbstractWorkflow.executeFunction()
    2. com.opensymphony.workflow
      AbstractWorkflow.transitionWorkflow
      1. com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
      2. com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
      2 frames