java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable

Atlassian JIRA | Brent Plump [OOO til 17-Oct] | 4 years ago
  1. 0

    If JIRA is not compatible with JDK7, it would be nice for AMPS to error out early and inform the user that JDK7 isn't supported. I was wondering if this was something I'd done wrong... My environment: * AMPS 4.1.4 * Oracle JDK 1.7.0_07 * Reproduced on OS X and Linux Steps to reproduce: # {{atlas-create-jira-plugin}} #* Selected JIRA 5.0 plugin # {{atlas-run}} from within the new plugin directory Results: * {{atlas-run}} reports "JIRA startup failed, JIRA has been locked." * See attached log file for errors, the first one being: {code} 2013-02-12 15:25:16,972 main ERROR [atlassian.plugin.manager.PluginEnabler] Unable to enable plugin com.atlassian.sal.jira java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:46) at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:26) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at org.apache.felix.framework.FelixResolverState.getCandidates(FelixResolverState.java:759) at org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:411) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402) at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237) at com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215) at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114) at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:99) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:727) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:180) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:58) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:663) at com.atlassian.jira.ComponentManager.startJIRA(ComponentManager.java:216) ... {code} Workaround: * Switch to JDK6

    Atlassian JIRA | 4 years ago | Brent Plump
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable
  2. 0

    If JIRA is not compatible with JDK7, it would be nice for AMPS to error out early and inform the user that JDK7 isn't supported. I was wondering if this was something I'd done wrong... My environment: * AMPS 4.1.4 * Oracle JDK 1.7.0_07 * Reproduced on OS X and Linux Steps to reproduce: # {{atlas-create-jira-plugin}} #* Selected JIRA 5.0 plugin # {{atlas-run}} from within the new plugin directory Results: * {{atlas-run}} reports "JIRA startup failed, JIRA has been locked." * See attached log file for errors, the first one being: {code} 2013-02-12 15:25:16,972 main ERROR [atlassian.plugin.manager.PluginEnabler] Unable to enable plugin com.atlassian.sal.jira java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:46) at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:26) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at org.apache.felix.framework.FelixResolverState.getCandidates(FelixResolverState.java:759) at org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:411) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402) at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237) at com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215) at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114) at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:99) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:727) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:180) at com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:58) at com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:663) at com.atlassian.jira.ComponentManager.startJIRA(ComponentManager.java:216) ... {code} Workaround: * Switch to JDK6

    Atlassian JIRA | 4 years ago | Brent Plump [OOO til 17-Oct]
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable
  3. 0

    The only place I can find another reference to this is at https://answers.atlassian.com/questions/40618/atlas-run-for-sdk-3-8-and-jira-5-0-fails-with-error-in-com-atlassian-sal-jira, but I confirmed that on a fresh JIRA 5.0.5 standalone install, starting up with JDK 1.7 throws: {noformat} 2012-06-04 07:25:38,788 http-8080-7 ERROR anonymous 445x17x1 1irm101 10.103.23.166 /secure/SetupDatabase.jspa [atlassian.plugin.manager.PluginEnabler] Unable to enable plugin com.atlassian.sal.jira java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:46) at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:26) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at org.apache.felix.framework.FelixResolverState.getCandidates(FelixResolverState.java:759) at org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:411) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402) at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) {noformat} This issue doesn't show up with JDK1.6.

    Atlassian JIRA | 5 years ago | John Knight
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The only place I can find another reference to this is at https://answers.atlassian.com/questions/40618/atlas-run-for-sdk-3-8-and-jira-5-0-fails-with-error-in-com-atlassian-sal-jira, but I confirmed that on a fresh JIRA 5.0.5 standalone install, starting up with JDK 1.7 throws: {noformat} 2012-06-04 07:25:38,788 http-8080-7 ERROR anonymous 445x17x1 1irm101 10.103.23.166 /secure/SetupDatabase.jspa [atlassian.plugin.manager.PluginEnabler] Unable to enable plugin com.atlassian.sal.jira java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:46) at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:26) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at java.util.AbstractCollection.addAll(AbstractCollection.java:334) at java.util.TreeSet.addAll(TreeSet.java:312) at org.apache.felix.framework.FelixResolverState.getCandidates(FelixResolverState.java:759) at org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:411) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75) at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402) at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892) at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417) {noformat} This issue doesn't show up with JDK1.6.

    Atlassian JIRA | 5 years ago | John Knight
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable
  6. 0

    JIRA start fail with cannot be cast to java.lang.Comparable - Atlassian Documentation

    atlassian.com | 6 months ago
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable

    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

      [Ljava.lang.String; cannot be cast to java.lang.Comparable

      at org.apache.felix.framework.resolver.CandidateComparator.compare()
    2. Apache Felix Framework
      CandidateComparator.compare
      1. org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:46)
      2. org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:26)
      2 frames
    3. Java RT
      TreeSet.addAll
      1. java.util.TreeMap.compare(TreeMap.java:1188)
      2. java.util.TreeMap.put(TreeMap.java:531)
      3. java.util.TreeSet.add(TreeSet.java:255)
      4. java.util.AbstractCollection.addAll(AbstractCollection.java:334)
      5. java.util.TreeSet.addAll(TreeSet.java:312)
      5 frames
    4. Apache Felix Framework
      BundleImpl.start
      1. org.apache.felix.framework.FelixResolverState.getCandidates(FelixResolverState.java:759)
      2. org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:411)
      3. org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75)
      4. org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986)
      5. org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402)
      6. org.apache.felix.framework.Felix.startBundle(Felix.java:1709)
      7. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
      8. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
      8 frames
    5. com.atlassian.plugin
      DefaultPluginManager.init
      1. com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417)
      2. com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237)
      3. com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215)
      4. com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114)
      5. com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:99)
      6. com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:727)
      7. com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:180)
      7 frames
    6. com.atlassian.jira
      ComponentManager.startJIRA
      1. com.atlassian.jira.plugin.JiraPluginManager.start(JiraPluginManager.java:58)
      2. com.atlassian.jira.ComponentManager$PluginSystem.start(ComponentManager.java:663)
      3. com.atlassian.jira.ComponentManager.startJIRA(ComponentManager.java:216)
      3 frames