We need to be able to read Excel 2007 OOXML (.xlsx) files in our application,
and in order to do so, I upgraded from POI 3.0 to 3.5. However after the
upgrade, I am getting this exception:

java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFDateUtil.isCellDateFormatted(Lorg/apache/poi/hssf/usermodel/HSSFCell;)Z
        at org.dbunit.dataset.excel.XlsTable.getValue(XlsTable.java:153)
        at
org.dbunit.operation.AbstractBatchOperation.isEmpty(AbstractBatchOperation.java:77)
        at
org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:135)
        at
com.carlson.cwt.test.db.HsqlDbSqlFileLoader.importXlsDataSet(HsqlDbSqlFileLoader.java:166)

Our project is using dbunit to load data sets from .xls files, and
apparently dbunit is incompatible with POI 3.5. This is confirmed here:
http://www.dbunit.org/dependencies.html which says dbunit requires POI 3.2.
Looking at POI source code, the function HSSFDateUtil.isCellDateFormatted()
is available in POI 3.2 but NOT in POI 3.5.

Which means I'm stuck! Suggestions anyone?

--Jan
-- 
View this message in context: 
http://www.nabble.com/POI-3.5-incompatible-with-dbunit--tp25924373p25924373.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to