java.lang.ClassCastException: java.lang.String

Atlassian JIRA | Antonio Vollono | 1 decade 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

    Editing the configuration of an existing custom field when selecting "all issue types" causes a crash. Choosing all of the issue: java.lang.ClassCastException: java.lang.String at com.atlassian.jira.util.ofbiz.GenericValueUtils.transformToStrings (GenericValueUtils.java:52) at com.atlassian.jira.web.action.admin.customfields.ManageConfigurationScheme.doDefault (ManageConfigurationScheme.java:106) 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:585) 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:57) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service (JiraServletDispatcher.java:185) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter The workaround for this issue is to select the issue types to which the custom field should be associated, rather than to select "all issue types". Alternatively, rather than to edit, deleting and re-adding the custom field type likewise avoids the problem. There is a patch attached to this issue to fix this, see the comment for installation instructions.

    Atlassian JIRA | 1 decade ago | Antonio Vollono
    java.lang.ClassCastException: java.lang.String
  2. 0

    Editing the configuration of an existing custom field when selecting "all issue types" causes a crash. Choosing all of the issue: java.lang.ClassCastException: java.lang.String at com.atlassian.jira.util.ofbiz.GenericValueUtils.transformToStrings (GenericValueUtils.java:52) at com.atlassian.jira.web.action.admin.customfields.ManageConfigurationScheme.doDefault (ManageConfigurationScheme.java:106) 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:585) 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:57) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service (JiraServletDispatcher.java:185) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter The workaround for this issue is to select the issue types to which the custom field should be associated, rather than to select "all issue types". Alternatively, rather than to edit, deleting and re-adding the custom field type likewise avoids the problem. There is a patch attached to this issue to fix this, see the comment for installation instructions.

    Atlassian JIRA | 1 decade ago | Antonio Vollono
    java.lang.ClassCastException: java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at com.atlassian.jira.util.ofbiz.GenericValueUtils.transformToStrings()
    2. com.atlassian.jira
      ManageConfigurationScheme.doDefault
      1. com.atlassian.jira.util.ofbiz.GenericValueUtils.transformToStrings(GenericValueUtils.java:52)
      2. com.atlassian.jira.web.action.admin.customfields.ManageConfigurationScheme.doDefault(ManageConfigurationScheme.java:106)
      2 frames
    3. 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:585)
      4 frames
    4. webwork.util
      InjectionUtils.invoke
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:52)
      2 frames
    5. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.invokeCommand(ActionSupport.java:417)
      2. webwork.action.ActionSupport.execute(ActionSupport.java:146)
      2 frames
    6. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:57)
      1 frame
    7. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
      1 frame
    8. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185)
      1 frame
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame