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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Michele Rillo, 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable
via Google Groups by Sush, 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable*
via Atlassian JIRA by John Knight, 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable
via Atlassian JIRA by John Knight, 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable
via Atlassian JIRA by Brent Plump [OOO til 17-Oct], 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable
via Atlassian JIRA by Brent Plump, 1 year ago
[Ljava.lang.String; cannot be cast to java.lang.Comparable
java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable
at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:50)
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 org.apache.felix.framework.StatefulResolver$ResolverStateImpl.getCandidates(StatefulResolver.java:1309)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:275)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)
at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)
at org.apache.felix.framework.resolver.Candidates.populate(Candidates.java:158)
at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:89)
at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3819)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
at java.lang.Thread.run(Thread.java:744)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.