-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.6
-
Fix Version/s: 5.6.0-HF13, 5.7.1
-
Component/s: None
-
Tags:
Steps to reproduce: in admin center, go to the activity > events tab and try to export results as excel.
Page crashes with the following error:
stackTrace : javax.servlet.ServletException: 441 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [...] Caused by: java.lang.ArrayIndexOutOfBoundsException: 441 at jxl.biff.IndexMapping.getNewIndex(IndexMapping.java:68) at jxl.biff.FormattingRecords.rationalize(FormattingRecords.java:385) at jxl.write.biff.WritableWorkbookImpl.rationalize(WritableWorkbookImpl.java:988) at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:692) at org.jboss.seam.excel.jxl.JXLExcelWorkbook.getBytes(JXLExcelWorkbook.java:322) at org.jboss.seam.excel.ui.UIWorkbook.encodeEnd(UIWorkbook.java:323)
(tested on 5.7-SNAPSHOT)
Other users report errors with the date conversion on 5.6:
2013-01-18 13:45:49,543 ERROR [facelets.viewhandler] Error Rendering View[/incl/export/content_view_xl.xhtml] java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date at org.jboss.seam.excel.jxl.JXLHelper.createCell(JXLHelper.java:644) at org.jboss.seam.excel.jxl.JXLExcelWorkbook.addCell(JXLExcelWorkbook.java:272) at org.jboss.seam.excel.jxl.JXLExcelWorkbook.addItem(JXLExcelWorkbook.java:514)