java.lang.ClassCastException: java.lang.String

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 Oracle Community by 807553, 1 year ago
java.lang.ClassCastException: java.lang.String
at america.Reporte$1.compare(Reporte.java:215)
at java.util.TreeMap.compare(TreeMap.java:1042)
at java.util.TreeMap.put(TreeMap.java:444)
at america.Reporte.getASRXRutaFP_(Reporte.java:228)
at reporte.ASRXRuta_7._jspService(ASRXRuta_7.java:200)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java)
at org.apache.tomcat.core.Handler.invoke(Handler.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java)
at java.lang.Thread.run(Thread.java:479)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.