Hi,
My codes are working corretly when testing it from my IDE in window OS however when we export it to Jar and execute it in unix putty, the process was killed due to failure in writing to user register stack - possible stack overflow.
Please see sample code snippet:
HSSFWorkbook tmpWorkbook = new HSSFWorkbook(“sample.xls”);
License lic = null;
lic = new License();
lic.setLicense(Workbook.class.getClassLoader().getResourceAsStream(
"Aspose.Cells.lic"));
ByteArrayOutputStream tmpOutStr = new ByteArrayOutputStream();
tmpWorkbook.write(tmpOutStr);
ByteArrayInputStream tmpExcelInputStream =
new ByteArrayInputStream(tmpOutStr.toByteArray());
Workbook workbook;
try {
workbook = new Workbook(tmpExcelInputStream);
workbook.save(tmpRuta.concat(aPreacuerdoVO.getNombfich()),
SaveFormat.PDF);
tmpExcelInputStream.close();
} catch (Exception tmpExcp) {
throw new BusinessException("Exception save excel");
// Save the document in PDF format
}