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

Google Groups | Michele Rillo | 3 years ago
  1. 0

    IPF 2.6.3 - ServiceMix 5.0.1

    Google Groups | 3 years ago | Michele Rillo
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable
  2. 0

    Issue while deploying IPF2.5.0

    Google Groups | 3 years ago | Sush
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable*
  3. 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
  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:50)
      2. org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:28)
      2 frames
    3. Java RT
      TreeSet.add
      1. java.util.TreeMap.compare(TreeMap.java:1188)
      2. java.util.TreeMap.put(TreeMap.java:531)
      3. java.util.TreeSet.add(TreeSet.java:255)
      3 frames
    4. Apache Felix Framework
      FrameworkStartLevelImpl.run
      1. org.apache.felix.framework.StatefulResolver$ResolverStateImpl.getCandidates(StatefulResolver.java:1309)
      2. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:275)
      3. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      4. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      5. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      6. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      7. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      8. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      9. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      10. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      11. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      12. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      13. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      14. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      15. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      16. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      17. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      18. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      19. org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
      20. org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
      21. org.apache.felix.framework.resolver.Candidates.populate(Candidates.java:158)
      22. org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:89)
      23. org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)
      24. org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3819)
      25. org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
      26. org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
      27. org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
      27 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame