java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field

Atlassian JIRA | Felipe van Schaik Willig [Atlassian] | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h3. Summary JIRA Capture bombs out with an error when trying to select a project that has a default issue security level set since the upgrade to JIRA 7.0.0-OD-01 in Cloud. h3. Environment * JIRA Cloud 7.0.0-OD-01-193 * JIRA Capture 2.9.2.115 h3. Steps to Reproduce # Set up a JIRA project with an issue security scheme that has a default security level set. # Log into that JIRA instance via the JIRA Capture browser extension. # Select the project that has the issue security scheme from step 1. h3. Expected Results The project can be selected and JIRA Capture continues to work. h3. Actual Results An error message appears in the browser extension panel: {quote} It looks like JIRA Capture has run into an unexpected fatal error. You will need to restart JIRA Capture which may fix this issue. If this problem persists, try the Clear Server Settings button below.{quote} In the JIRA logs, this stack trace appears: {code:none} 2015-08-20 20:46:32,795 ajp-nio-127.0.0.104-8009-exec-436 ERROR sysadmin 1246x119958x1 19bno1m 202.68.74.170,165.254.226.194 /rest/bonfire/1.0/fields/13403 [c.a.bonfire.rest.FieldsResource] Unable to complete Bonfire REST method java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field at com.atlassian.bonfire.JiraFieldHelper70.getSecurityDefaultValue(JiraFieldHelper70.java:24) at com.atlassian.bonfire.service.CaptureCompatibilityServiceImpl.getSecurityDefaultValue(CaptureCompatibilityServiceImpl.java:328) at com.atlassian.bonfire.service.rest.SystemFieldOptionService.getDefaultValue(SystemFieldOptionService.java:83) at com.atlassian.bonfire.rest.FieldsResource.getSystemField(FieldsResource.java:275) at com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:194) at com.atlassian.bonfire.rest.FieldsResource.access$500(FieldsResource.java:49) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:144) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:102) at com.atlassian.bonfire.rest.util.RestCall.response(RestCall.java:36) at com.atlassian.bonfire.rest.util.BonfireRestResource.response(BonfireRestResource.java:51) at com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:101) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) ... 36 filtered at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65) ... 24 filtered at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) ... 52 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) ... 92 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2015-08-20 20:46:32,803 ajp-nio-127.0.0.104-8009-exec-436 ERROR sysadmin 1246x119958x1 19bno1m 202.68.74.170,165.254.226.194 /rest/bonfire/1.0/fields/13403 [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field at com.atlassian.bonfire.JiraFieldHelper70.getSecurityDefaultValue(JiraFieldHelper70.java:24) at com.atlassian.bonfire.service.CaptureCompatibilityServiceImpl.getSecurityDefaultValue(CaptureCompatibilityServiceImpl.java:328) at com.atlassian.bonfire.service.rest.SystemFieldOptionService.getDefaultValue(SystemFieldOptionService.java:83) at com.atlassian.bonfire.rest.FieldsResource.getSystemField(FieldsResource.java:275) at com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:194) at com.atlassian.bonfire.rest.FieldsResource.access$500(FieldsResource.java:49) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:144) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:102) at com.atlassian.bonfire.rest.util.RestCall.response(RestCall.java:36) at com.atlassian.bonfire.rest.util.BonfireRestResource.response(BonfireRestResource.java:51) at com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:101) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) ... 36 filtered at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65) ... 24 filtered at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) ... 52 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) ... 92 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) {code} h3.Workaround Edit the security scheme and click the "Change default security level to "None"" link (we realise this may not be desirable depending on your specific setup).

    Atlassian JIRA | 2 years ago | Felipe van Schaik Willig [Atlassian]
    java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field
  2. 0

    h3. Summary JIRA Capture bombs out with an error when trying to select a project that has a default issue security level set since the upgrade to JIRA 7.0.0-OD-01 in Cloud. h3. Environment * JIRA Cloud 7.0.0-OD-01-193 * JIRA Capture 2.9.2.115 h3. Steps to Reproduce # Set up a JIRA project with an issue security scheme that has a default security level set. # Log into that JIRA instance via the JIRA Capture browser extension. # Select the project that has the issue security scheme from step 1. h3. Expected Results The project can be selected and JIRA Capture continues to work. h3. Actual Results An error message appears in the browser extension panel: {quote} It looks like JIRA Capture has run into an unexpected fatal error. You will need to restart JIRA Capture which may fix this issue. If this problem persists, try the Clear Server Settings button below.{quote} In the JIRA logs, this stack trace appears: {code:none} 2015-08-20 20:46:32,795 ajp-nio-127.0.0.104-8009-exec-436 ERROR sysadmin 1246x119958x1 19bno1m 202.68.74.170,165.254.226.194 /rest/bonfire/1.0/fields/13403 [c.a.bonfire.rest.FieldsResource] Unable to complete Bonfire REST method java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field at com.atlassian.bonfire.JiraFieldHelper70.getSecurityDefaultValue(JiraFieldHelper70.java:24) at com.atlassian.bonfire.service.CaptureCompatibilityServiceImpl.getSecurityDefaultValue(CaptureCompatibilityServiceImpl.java:328) at com.atlassian.bonfire.service.rest.SystemFieldOptionService.getDefaultValue(SystemFieldOptionService.java:83) at com.atlassian.bonfire.rest.FieldsResource.getSystemField(FieldsResource.java:275) at com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:194) at com.atlassian.bonfire.rest.FieldsResource.access$500(FieldsResource.java:49) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:144) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:102) at com.atlassian.bonfire.rest.util.RestCall.response(RestCall.java:36) at com.atlassian.bonfire.rest.util.BonfireRestResource.response(BonfireRestResource.java:51) at com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:101) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) ... 36 filtered at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65) ... 24 filtered at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) ... 52 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) ... 92 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2015-08-20 20:46:32,803 ajp-nio-127.0.0.104-8009-exec-436 ERROR sysadmin 1246x119958x1 19bno1m 202.68.74.170,165.254.226.194 /rest/bonfire/1.0/fields/13403 [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field at com.atlassian.bonfire.JiraFieldHelper70.getSecurityDefaultValue(JiraFieldHelper70.java:24) at com.atlassian.bonfire.service.CaptureCompatibilityServiceImpl.getSecurityDefaultValue(CaptureCompatibilityServiceImpl.java:328) at com.atlassian.bonfire.service.rest.SystemFieldOptionService.getDefaultValue(SystemFieldOptionService.java:83) at com.atlassian.bonfire.rest.FieldsResource.getSystemField(FieldsResource.java:275) at com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:194) at com.atlassian.bonfire.rest.FieldsResource.access$500(FieldsResource.java:49) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:144) at com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:102) at com.atlassian.bonfire.rest.util.RestCall.response(RestCall.java:36) at com.atlassian.bonfire.rest.util.BonfireRestResource.response(BonfireRestResource.java:51) at com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:101) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:497) ... 19 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73) ... 36 filtered at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65) ... 24 filtered at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) ... 52 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40) ... 92 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) {code} h3.Workaround Edit the security scheme and click the "Change default security level to "None"" link (we realise this may not be desirable depending on your specific setup).

    Atlassian JIRA | 2 years ago | Felipe van Schaik Willig [Atlassian]
    java.lang.ClassCastException: org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.ofbiz.core.entity.GenericValue cannot be cast to com.atlassian.jira.issue.fields.Field

      at com.atlassian.bonfire.JiraFieldHelper70.getSecurityDefaultValue()
    2. com.atlassian.bonfire
      FieldsResource.getFieldsForProjectFromPath
      1. com.atlassian.bonfire.JiraFieldHelper70.getSecurityDefaultValue(JiraFieldHelper70.java:24)
      2. com.atlassian.bonfire.service.CaptureCompatibilityServiceImpl.getSecurityDefaultValue(CaptureCompatibilityServiceImpl.java:328)
      3. com.atlassian.bonfire.service.rest.SystemFieldOptionService.getDefaultValue(SystemFieldOptionService.java:83)
      4. com.atlassian.bonfire.rest.FieldsResource.getSystemField(FieldsResource.java:275)
      5. com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:194)
      6. com.atlassian.bonfire.rest.FieldsResource.access$500(FieldsResource.java:49)
      7. com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:144)
      8. com.atlassian.bonfire.rest.FieldsResource$1.call(FieldsResource.java:102)
      9. com.atlassian.bonfire.rest.util.RestCall.response(RestCall.java:36)
      10. com.atlassian.bonfire.rest.util.BonfireRestResource.response(BonfireRestResource.java:51)
      11. com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:101)
      11 frames