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 Coderanch by Graeme Byers, 1 year ago
java.lang.Integer cannot be cast to EmpClass
java.lang.ClassCastException: java.lang.Integer cannot be cast to EmpClass	at undefined.EmpNameComparator.compare(CompTest.java:53)	at java.util.TreeMap.put(Unknown Source)	at undefined.CompTest.main(CompTest.java:12)