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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Brent Plump,
  • 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
    via by Brent Plump [OOO til 17-Oct],
  • 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.
    via by John Knight,
  • 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.
    via by John Knight,
  • Issue while deploying IPF2.5.0
    via by Sush,
  • IPF 2.6.3 - ServiceMix 5.0.1
    via by Michele Rillo,
    • 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)
    No Bugmate found.