Syam3
(Syam Pillai)
August 27, 2016, 11:18am
1
In the latest POI versions, method org.apache.poi.ss.usermodel.Workbook.getNumCellStyles() returns ‘int’ instead of ‘short’. So, if anyone tries to use spreadsheet add-on with latest POI versions, it won’t work.
One will get a runtime error as follows:
java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.Workbook.getNumCellStyles()S
com.vaadin.addon.spreadsheet.SpreadsheetStyleFactory.reloadActiveSheetColumnRowStyles(SpreadsheetStyleFactory.java:222)
com.vaadin.addon.spreadsheet.Spreadsheet.reloadActiveSheetData(Spreadsheet.java:2715)
com.vaadin.addon.spreadsheet.Spreadsheet.setInternalWorkbook(Spreadsheet.java:2630)
com.vaadin.addon.spreadsheet.SpreadsheetFactory.reloadSpreadsheetComponent(SpreadsheetFactory.java:271)
com.vaadin.addon.spreadsheet.SpreadsheetFactory.reloadSpreadsheetComponent(SpreadsheetFactory.java:245)
com.vaadin.addon.spreadsheet.Spreadsheet.<init>(Spreadsheet.java:449)
Syam3
(Syam Pillai)
August 29, 2016, 3:42am
2
In the latest POI versions, method org.apache.poi.ss.usermodel.Workbook.getNumCellStyles() returns ‘int’ instead of ‘short’. So, if anyone tries to use spreadsheet add-on with latest POI versions, it won’t work.
One will get a runtime error as follows:
java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.Workbook.getNumCellStyles()S
com.vaadin.addon.spreadsheet.SpreadsheetStyleFactory.reloadActiveSheetColumnRowStyles(SpreadsheetStyleFactory.java:222)
com.vaadin.addon.spreadsheet.Spreadsheet.reloadActiveSheetData(Spreadsheet.java:2715)
com.vaadin.addon.spreadsheet.Spreadsheet.setInternalWorkbook(Spreadsheet.java:2630)
com.vaadin.addon.spreadsheet.SpreadsheetFactory.reloadSpreadsheetComponent(SpreadsheetFactory.java:271)
com.vaadin.addon.spreadsheet.SpreadsheetFactory.reloadSpreadsheetComponent(SpreadsheetFactory.java:245)
com.vaadin.addon.spreadsheet.Spreadsheet.<init>(Spreadsheet.java:449)
SInce this change in POI library breaks binary compatibility with older verions, a recomplipation is required for all the projects that use POI library to work.