org.apache.poi.hssf.usermodel.HSSFCell cannot be cast to java.lang.String
headerCell.setCellValue(new HSSFRichTextString(titleArray.get(cnt))); // Exception is happening here
Cheers, Martijn, Twitter.