java.lang.ClassCastException: java.lang.String

Coderanch | Alex Hays | 1 decade 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

    !Help! Error: Exception in thread "main" java.lang.ClassCastException

    Coderanch | 1 decade ago | Alex Hays
    java.lang.ClassCastException: java.lang.String
  2. 0

    !Help! Error: Exception in thread "main" java.lang.ClassCastException

    Coderanch | 1 decade ago | Alex Hays
    java.lang.ClassCastException

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at Traveler.compareTo()
    2. Unknown
      TravelDriver.main
      1. Traveler.compareTo(Traveler.java:42)
      2. Reservation.compareTo(Reservation.java:69)
      3. SortUtility.getIndexMinimumElement(SortUtility.java:30)
      4. SortUtility.sort(SortUtility.java:13)
      5. TravelManager.getReservations(TravelManager.java:90)
      6. TravelManager.getTravelerReservations(TravelManager.java:119)
      7. TravelDriver.printTravelerReservations(TravelDriver.java:69)
      8. TravelDriver.printTravelers(TravelDriver.java:99)
      9. TravelDriver.<init>(TravelDriver.java:16)
      10. TravelDriver.main(TravelDriver.java:104)
      10 frames