java.lang.ClassCastException: org.apache.poi.hssf.usermodel.HSSFRichTextString cannot be cast to 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 Coderanch by Jeff Verdegan, 1 year ago
org.apache.poi.hssf.usermodel.HSSFRichTextString cannot be cast to java.lang.String
via Coderanch by Aggarwal Arpit, 1 year ago
org.apache.poi.hssf.usermodel.HSSFRichTextString cannot be cast to java.lang.String
via Oracle Community by dr_nik, 1 year ago
$Proxy0 cannot be cast to java.lang.String
via Stack Overflow by Unknown author, 2 years ago
java.util.Date cannot be cast to java.lang.String
via Coderanch by Ivan Jozsef Balazs, 1 year ago
java.lang.Integer cannot be cast to java.lang.String
via GitHub by ypujante
, 2 years ago
org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String
java.lang.ClassCastException: org.apache.poi.hssf.usermodel.HSSFRichTextString cannot be cast to java.lang.String
at java.lang.String.compareTo(Unknown Source)
at java.util.TreeMap.getEntry(Unknown Source)
at java.util.TreeMap.containsKey(Unknown Source)
at java.util.TreeSet.contains(Unknown Source)
at com.test.ReadExcelFile.showExelData(ReadExcelFile.java:154)
at com.test.ReadExcelFile.main(ReadExcelFile.java:121)

Users with the same issue

Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago

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