我正在尝试使用PrimeFaces DataExporter导出xlsxstream
类型的文件,但我似乎收到此错误:
WARNING: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column.
java.lang.IllegalStateException: Could not auto-size column. Make sure the column was tracked prior to auto-sizing the column.
at org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1606)
at org.apache.poi.xssf.streaming.SXSSFSheet.autoSizeColumn(SXSSFSheet.java:1560)
at org.primefaces.component.export.ExcelExporter.export(ExcelExporter.java:85)
at org.primefaces.component.export.DataExporter.processAction(DataExporter.java:145)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
...
知道如何调试这个,或者原因可能是什么?
Bug报告给PrimeFaces:https://github.com/primefaces/primefaces/issues/4034
我为PF 6.3修复了它:https://github.com/primefaces/primefaces/pull/4035