File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes ClassCastExcepiton Using POI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "ClassCastExcepiton Using POI" Watch "ClassCastExcepiton Using POI" New topic

ClassCastExcepiton Using POI


Joined: Aug 13, 2002
Posts: 15

I am reading an excel file using POI api I am getting Classcast exception for the below line..

HSSFWorkbook wb1 = new HSSFWorkbook();
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(filename);

Below is the Excepiton I am getting ..Please let me know if anybody has comeacross this type of error and any solution to the same..

at java.util.TreeMap.put(
at org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.insertCell(
at org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.construct(
at org.apache.poi.hssf.model.Sheet.createSheet(
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(

Thanks In Advance


Thanks<br />chets
I agree. Here's the link:
subject: ClassCastExcepiton Using POI
It's not a secret anymore!