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 Stack Overflow by Binoy Babu
, 2 years ago
java.lang.String cannot be cast to java.lang.Long
via Oracle Community by 843790, 2 years ago
via Oracle Community by 843793, 2 years ago
via Stack Overflow by Lucas
, 2 years ago
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long at java.lang.Long.compareTo(Long.java:32) at java.util.TreeMap.find(TreeMap.java:277) at java.util.TreeMap.findByObject(TreeMap.java:351) at java.util.TreeMap.containsKey(TreeMap.java:182) at com.vibhinna.library.engine.CpuStates.getCpuData(CpuStates.java:96) at com.vibhinna.library.engine.CpuStates.getBarData(CpuStates.java:162)