java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection

Atlassian JIRA | Stu Belden | 8 years ago
  1. 0

    Attempting to drag and drop an issue on the Task Board from In Progress to Done throws a class cast exception. This is a default config of GH 3.2.1, running on JIRA 3.13.1. I also saw this behavior in 3.1.1. Here's the relevant (probably) portion of the stack trace from catalina.out. I'll attach the whole log in a second. {noformat} java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection at com.atlassian.jira.issue.fields.AbstractVersionsSystemField.getValueFromParams(AbstractVersionsSystemField.java:133) at com.atlassian.jira.issue.fields.FixVersionsSystemField.updateIssue(FixVersionsSystemField.java:95) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.progress(WorkflowTransitionUtilImpl.java:258) at com.pyxis.greenhopper.jira.util.JiraUtil.changeStatus(JiraUtil.java:275) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.updateIssueState(TaskBoardAction.java:456) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.doUpdateStatusWithInputs(TaskBoardAction.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:417) at webwork.action.ActionSupport.execute(ActionSupport.java:146) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) {noformat} * I can successfully drag issues from To Do to In Progress. It seems like it might only affect Resolved or Closed statuses * I can successfully resolve or close issues using the normal JIRA workflow process. *Workaround* Withdraw the "Required" setting on your FixVersion field in the transition screens.

    Atlassian JIRA | 8 years ago | Stu Belden
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection
  2. 0

    Attempting to drag and drop an issue on the Task Board from In Progress to Done throws a class cast exception. This is a default config of GH 3.2.1, running on JIRA 3.13.1. I also saw this behavior in 3.1.1. Here's the relevant (probably) portion of the stack trace from catalina.out. I'll attach the whole log in a second. {noformat} java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection at com.atlassian.jira.issue.fields.AbstractVersionsSystemField.getValueFromParams(AbstractVersionsSystemField.java:133) at com.atlassian.jira.issue.fields.FixVersionsSystemField.updateIssue(FixVersionsSystemField.java:95) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.progress(WorkflowTransitionUtilImpl.java:258) at com.pyxis.greenhopper.jira.util.JiraUtil.changeStatus(JiraUtil.java:275) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.updateIssueState(TaskBoardAction.java:456) at com.pyxis.greenhopper.jira.actions.TaskBoardAction.doUpdateStatusWithInputs(TaskBoardAction.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:417) at webwork.action.ActionSupport.execute(ActionSupport.java:146) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) {noformat} * I can successfully drag issues from To Do to In Progress. It seems like it might only affect Resolved or Closed statuses * I can successfully resolve or close issues using the normal JIRA workflow process. *Workaround* Withdraw the "Required" setting on your FixVersion field in the transition screens.

    Atlassian JIRA | 8 years ago | Stu Belden
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection
  3. 0

    Serialization issu

    GitHub | 3 years ago | ydeshayes
    play.api.Application$$anon$1: Execution exception[[ClassCastException: java.lang.String cannot be cast to java.util.Collection]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    find with DBQuery.is() fails for collection fields with ClassCastException

    GitHub | 2 months ago | ractive
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection
  6. 0

    Allow single "aud" in JWT without need for JSON array format?

    GitHub | 1 year ago | sdoxsee
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection

    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.ClassCastException

      java.lang.String cannot be cast to java.util.Collection

      at com.atlassian.jira.issue.fields.AbstractVersionsSystemField.getValueFromParams()
    2. com.atlassian.jira
      WorkflowTransitionUtilImpl.progress
      1. com.atlassian.jira.issue.fields.AbstractVersionsSystemField.getValueFromParams(AbstractVersionsSystemField.java:133)
      2. com.atlassian.jira.issue.fields.FixVersionsSystemField.updateIssue(FixVersionsSystemField.java:95)
      3. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.progress(WorkflowTransitionUtilImpl.java:258)
      3 frames
    3. com.pyxis.greenhopper
      TaskBoardAction.doUpdateStatusWithInputs
      1. com.pyxis.greenhopper.jira.util.JiraUtil.changeStatus(JiraUtil.java:275)
      2. com.pyxis.greenhopper.jira.actions.TaskBoardAction.updateIssueState(TaskBoardAction.java:456)
      3. com.pyxis.greenhopper.jira.actions.TaskBoardAction.doUpdateStatusWithInputs(TaskBoardAction.java:163)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. webwork.util
      InjectionUtils.invoke
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:52)
      2 frames
    6. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.invokeCommand(ActionSupport.java:417)
      2. webwork.action.ActionSupport.execute(ActionSupport.java:146)
      2 frames
    7. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54)
      1 frame
    8. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
      1 frame