Hi,
The below code works fine in Weblogic
Workbook workbook = new Workbook(FileFormatType.XLSX);
workbook.save(new BufferedOutputStream(new FileOutputStream(“C:/paging/test.xlsx”)),SaveFormat.XLSX);
But the same code, when executed in JBOSS, the file is getting getting corrupted and couldn’t be opened. Below messaage appears when try to open xlsx file.
The file format or the file extension is not valid. Verify that the file has not been corrupted and that the file extension
matches the format of the file.
In my Jboss application,sometimes,after workbook.save, the file format is getting changed to xls from xlsx.
Though I set FileformatType to XLSX explicitly, Somehow, somewhere file format is getting changed to xls instead of xlsx.
Many times, I noticed the file format getting changed from 6 to 5 after workbook.save.
But this issue is not happening when I deployed the same code in Weblogic.
Kindly clarify. Thanks.