Hi,

Just started using the latest POI 3.7 form the Maven Repository and i'm
running into a strange snag whilst converting an xls to csv.
The code was working just fine on 3.6 so i know the code as such is fine.

The problem lies within the code below:
<snip>
  int idx = lsrec.getSSTIndex();
  UnicodeString t = sstRecord.getString(idx);
</snip>

produces the following exception:
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.poi.hssf.record.SSTRecord.getString(I)Lorg/apache/poi/hssf/record/common/UnicodeString;
    at file.XLS2CSV.processRecord(XLS2CSV.java:314)
    at
org.apache.poi.hssf.eventusermodel.MissingRecordAwareHSSFListener.processRecord(MissingRecordAwareHSSFListener.java:194)
    at
org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener.processRecord(FormatTrackingHSSFListener.java:64)
    at
org.apache.poi.hssf.eventusermodel.HSSFRequest.processRecord(HSSFRequest.java:113)
    at
org.apache.poi.hssf.eventusermodel.HSSFEventFactory.genericProcessEvents(HSSFEventFactory.java:126)
    at
org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:85)
    at
org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processWorkbookEvents(HSSFEventFactory.java:56)

When a breakpoint is set (Eclipse Helios) the sstRecord shows up nicely and
all looks good.

I could switch back to 3.6 but it seems to me that something as fundamental
as getting a string value from a record should just work.

It could be that something has changed in the codebase that i have missed
but i'm not seeing it at the moment.

Any help and/or suggestions are appreciated because this is quite
debilitating at the moment.

Tia,

Fermin DCG

Reply via email to