java.lang.ClassCastException: java.lang.String

Atlassian JIRA | Jeff Turner | 1 decade ago
  1. 0

    A user reports getting "java.lang.ClassCastException: java.lang.String" stacktraces every time the custom fields (Admin -> Custom Fields) are viewed: {noformat} 2006-10-05 11:51:57,980 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: mysql 2006-10-05 11:51:58,375 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] ***************************************************************************************************** JIRA 3.6.4 build: 160 (Enterprise Edition) started. You can now access JIRA through your web browser. ***************************************************************************************************** 2006-10-05 11:51:58,519 WARN [service.services.export.ExportService] Backup directory /usr/local/JIRA/JIRA_DB/backups does not exist [Filter: profiling] Using parameter [jira_profile] [Filter: profiling] defaulting to off [autostart=false] [Filter: profiling] Turning filter off [jira_profile=off] 2006-10-05 11:51:59,311 [webwork.dispatcher.ServletDispatcher] Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir 5/10/2006 11:51:59 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 5/10/2006 11:51:59 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 5/10/2006 11:51:59 org.apache.catalina.startup.Catalina start INFO: Server startup in 22304 ms 2006-10-05 11:53:21,971 WARN [atlassian.seraph.auth.DefaultAuthenticator] User: test tried to login but they do not have USE permission or weren't found. Deleting cookie. 2006-10-05 11:56:02,306 ERROR [core.ofbiz.comparators.OFBizFieldComparator] Exception: java.lang.ClassCastException: java.lang.String java.lang.ClassCastException: java.lang.String at com.atlassian.core.ofbiz.comparators.OFBizFieldComparator.compare(OFBizFieldComparator.java:30) at java.util.Arrays.mergeSort(Arrays.java:1284) at java.util.Arrays.sort(Arrays.java:1223) at java.util.Collections.sort(Collections.java:159) at com.atlassian.jira.issue.fields.CustomFieldImpl.getAssociatedIssueTypes(CustomFieldImpl.java:962) at com.atlassian.jira.issue.fields.CustomFieldImpl.isAllIssueTypes(CustomFieldImpl.java:993) 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.util.ValueStack.findValue(ValueStack.java:346) at webwork.util.SimpleTest.test(SimpleTest.java:391) at webwork.util.ValueStack.test(ValueStack.java:129) at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38) at org.apache.jsp.secure.admin.views.customfields.contexts_jsp._jspService(org.apache.jsp.secure.admin.views.customfields.contexts_jsp:103) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.secure.admin.views.customfields.customfields_jsp._jspService(org.apache.jsp.secure.admin.views.customfields.customfields_jsp:267) {noformat}

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.ClassCastException: java.lang.String
  2. 0

    A user reports getting "java.lang.ClassCastException: java.lang.String" stacktraces every time the custom fields (Admin -> Custom Fields) are viewed: {noformat} 2006-10-05 11:51:57,980 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: mysql 2006-10-05 11:51:58,375 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] ***************************************************************************************************** JIRA 3.6.4 build: 160 (Enterprise Edition) started. You can now access JIRA through your web browser. ***************************************************************************************************** 2006-10-05 11:51:58,519 WARN [service.services.export.ExportService] Backup directory /usr/local/JIRA/JIRA_DB/backups does not exist [Filter: profiling] Using parameter [jira_profile] [Filter: profiling] defaulting to off [autostart=false] [Filter: profiling] Turning filter off [jira_profile=off] 2006-10-05 11:51:59,311 [webwork.dispatcher.ServletDispatcher] Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir 5/10/2006 11:51:59 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 5/10/2006 11:51:59 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 5/10/2006 11:51:59 org.apache.catalina.startup.Catalina start INFO: Server startup in 22304 ms 2006-10-05 11:53:21,971 WARN [atlassian.seraph.auth.DefaultAuthenticator] User: test tried to login but they do not have USE permission or weren't found. Deleting cookie. 2006-10-05 11:56:02,306 ERROR [core.ofbiz.comparators.OFBizFieldComparator] Exception: java.lang.ClassCastException: java.lang.String java.lang.ClassCastException: java.lang.String at com.atlassian.core.ofbiz.comparators.OFBizFieldComparator.compare(OFBizFieldComparator.java:30) at java.util.Arrays.mergeSort(Arrays.java:1284) at java.util.Arrays.sort(Arrays.java:1223) at java.util.Collections.sort(Collections.java:159) at com.atlassian.jira.issue.fields.CustomFieldImpl.getAssociatedIssueTypes(CustomFieldImpl.java:962) at com.atlassian.jira.issue.fields.CustomFieldImpl.isAllIssueTypes(CustomFieldImpl.java:993) 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.util.ValueStack.findValue(ValueStack.java:346) at webwork.util.SimpleTest.test(SimpleTest.java:391) at webwork.util.ValueStack.test(ValueStack.java:129) at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38) at org.apache.jsp.secure.admin.views.customfields.contexts_jsp._jspService(org.apache.jsp.secure.admin.views.customfields.contexts_jsp:103) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.secure.admin.views.customfields.customfields_jsp._jspService(org.apache.jsp.secure.admin.views.customfields.customfields_jsp:267) {noformat}

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.ClassCastException: java.lang.String
  3. 0

    Vector and AbstractTableModel

    Oracle Community | 1 decade ago | 843805
    java.lang.ClassCastException: java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    get the row id of an spinner item populated from database

    Stack Overflow | 4 years ago | user1381760
    java.lang.ClassCastException: java.lang.String
  6. 0

    How to upload Byte array (image) on facebook wall with android application?

    Stack Overflow | 4 years ago | TKumar
    java.lang.ClassCastException: java.lang.String

    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

      at com.atlassian.core.ofbiz.comparators.OFBizFieldComparator.compare()
    2. com.atlassian.core
      OFBizFieldComparator.compare
      1. com.atlassian.core.ofbiz.comparators.OFBizFieldComparator.compare(OFBizFieldComparator.java:30)
      1 frame
    3. Java RT
      Collections.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1284)
      2. java.util.Arrays.sort(Arrays.java:1223)
      3. java.util.Collections.sort(Collections.java:159)
      3 frames
    4. com.atlassian.jira
      CustomFieldImpl.isAllIssueTypes
      1. com.atlassian.jira.issue.fields.CustomFieldImpl.getAssociatedIssueTypes(CustomFieldImpl.java:962)
      2. com.atlassian.jira.issue.fields.CustomFieldImpl.isAllIssueTypes(CustomFieldImpl.java:993)
      2 frames
    5. 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
    6. webwork.util
      ValueStack.test
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:52)
      3. webwork.util.ValueStack.findValue(ValueStack.java:346)
      4. webwork.util.SimpleTest.test(SimpleTest.java:391)
      5. webwork.util.ValueStack.test(ValueStack.java:129)
      5 frames
    7. webwork.view.taglib
      IfTag.doStartTag
      1. webwork.view.taglib.IfTag.doStartTag(IfTag.java:38)
      1 frame
    8. org.apache.jsp
      contexts_jsp._jspService
      1. org.apache.jsp.secure.admin.views.customfields.contexts_jsp._jspService(org.apache.jsp.secure.admin.views.customfields.contexts_jsp:103)
      1 frame
    9. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame
    11. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      3 frames
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame
    13. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      5 frames
    14. GWT dev
      JspRuntimeLibrary.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
      1 frame
    15. org.apache.jsp
      customfields_jsp._jspService
      1. org.apache.jsp.secure.admin.views.customfields.customfields_jsp._jspService(org.apache.jsp.secure.admin.views.customfields.customfields_jsp:267)
      1 frame