java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String

GitHub | rambaut | 2 months ago
  1. 0

    GitHub comment 56#251392128

    GitHub | 2 months ago | rambaut
    java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
  2. 0

    ObjectMapper.readValue fails for `TreeSet` for byte[] (and other types that are not `Comparable`)

    GitHub | 3 years ago | webbean
    java.lang.ClassCastException: [B cannot be cast to java.lang.Comparable
  3. 0

    HashSet and TreeSet in Java

    Stack Overflow | 3 years ago | Java_Alert
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    can StringBuffer objects be keys in TreeSet in Java?

    Stack Overflow | 3 years ago | eagertoLearn
    java.lang.ClassCastException: java.lang.StringBuffer cannot be cast to java.lang.Comparable
  6. 0

    ClassCastException when Treeset.add(), despite implementing comparable with compareTo method

    Stack Overflow | 4 years ago | Lucas Morgan
    java.lang.ClassCastException: shared.Contact cannot be cast to java.lang.String

  1. aldrinleal 2 times, last 3 months ago
3 unregistered visitors
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

    java.lang.Double cannot be cast to java.lang.String

    at java.lang.String.compareTo()
  2. Java RT
    TreeSet.add
    1. java.lang.String.compareTo(String.java:111)
    2. java.util.TreeMap.put(TreeMap.java:568)
    3. java.util.TreeSet.add(TreeSet.java:255)
    3 frames
  3. figtree.treeviewer.decorators
    HSBDiscreteColourDecorator.<init>
    1. figtree.treeviewer.decorators.DiscreteColourDecorator.setAttributes(DiscreteColourDecorator.java:107)
    2. figtree.treeviewer.decorators.ColourDecorator.<init>(ColourDecorator.java:54)
    3. figtree.treeviewer.decorators.DiscreteColourDecorator.<init>(DiscreteColourDecorator.java:88)
    4. figtree.treeviewer.decorators.HSBDiscreteColourDecorator.<init>(HSBDiscreteColourDecorator.java:61)
    4 frames
  4. figtree.treeviewer
    AttributeColourController.getColourDecorator
    1. figtree.treeviewer.AttributeColourController.getDecoratorForAttribute(AttributeColourController.java:171)
    2. figtree.treeviewer.AttributeColourController.getColourDecorator(AttributeColourController.java:142)
    2 frames
  5. figtree.treeviewer.painters
    AttributeComboHelper$2.actionPerformed
    1. figtree.treeviewer.painters.LegendPainterController$1.attributeComboChanged(LegendPainterController.java:106)
    2. figtree.treeviewer.painters.AttributeComboHelper.fireAttributeSelectionChanged(AttributeComboHelper.java:293)
    3. figtree.treeviewer.painters.AttributeComboHelper.access$200(AttributeComboHelper.java:46)
    4. figtree.treeviewer.painters.AttributeComboHelper$2.actionPerformed(AttributeComboHelper.java:141)
    4 frames