Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. TreeSet.add() has thrown a ClassCastException
    Java Runtime
    7
    4
    1
  2. TreeMap.put() has thrown a ClassCastException
    Java Runtime
    8
    4
    1

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.ClassCastException: Tree cannot be cast to java.lang.Comparable
    at java.util.TreeMap.put(TreeMap.java:542)
    at java.util.TreeSet.add(TreeSet.java:238)
    at Tree.main(Tree.java:13)

External results for this pattern (10)

  1. Unknown authorvia dreamincode.net4 months ago
    DeliveryHouseDetails cannot be cast to java.lang.Comparable
    Show stack trace
  2. Rais Alamvia Stack Overflow4 months ago
    Exception in thread "main" java.lang.ClassCastException: Employee cannot be cast to java.lang.Comparable
    Show stack trace
  3. Unknown authorvia csdn.net4 months ago
    collection.Dog cannot be cast to java.lang.Comparable
    Show stack trace
  4. Unknown authorvia dzone.com4 months ago
    collection.Dog cannot be cast to java.lang.Comparable
    Show stack trace
  5. Unknown authorvia programcreek.com4 months ago
    collection.Dog cannot be cast to java.lang.Comparable
    Show stack trace
  6. Unknown authorvia programcreek.com4 months ago
    Dog cannot be cast to java.lang.Comparable
    Show stack trace
  7. Unknown authorvia coderanch.com4 months ago
  8. Unknown authorvia JIRA4 months ago
    org.obiba.magma.datasource.hibernate.HibernateValueTable cannot be cast to java.lang.Comparable
    Show stack trace
  9. Philippe Laflammevia JIRA4 months ago
    org.obiba.magma.datasource.hibernate.HibernateValueTable cannot be cast to java.lang.Comparable
    Show stack trace
  10. alekseyivkinvia Eclipse Bugzilla4 months ago
    Error happened while running the report.
    Show stack trace