java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to java.lang.Comparable

Terracotta | clarissa | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception while using sorting on Object field

    Terracotta | 3 years ago | clarissa
    java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to java.lang.Comparable

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to java.lang.Comparable

      at net.sf.ehcache.search.impl.OrderComparator$AscendingComparator.compare()
    2. Ehcache
      OrderComparator.compare
      1. net.sf.ehcache.search.impl.OrderComparator$AscendingComparator.compare(OrderComparator.java:103)
      2. net.sf.ehcache.search.impl.OrderComparator$AscendingComparator.compare(OrderComparator.java:79)
      3. net.sf.ehcache.search.impl.OrderComparator.compare(OrderComparator.java:68)
      4. net.sf.ehcache.search.impl.OrderComparator.compare(OrderComparator.java:32)
      4 frames
    3. Java RT
      Arrays.mergeSort
      1. java.util.Arrays.mergeSort(Unknown Source)
      1 frame