https://bz.apache.org/bugzilla/show_bug.cgi?id=59307
Bug ID: 59307
Summary: IOException while reading /xl/sharedStrings.xml from a
XLSX
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
I am using POI-3.10-FINAL-20140208 release.
I have a agent server that picks the files from the file system and reads the
files. Below is the code I am using.
OPCPackage opcPackage = OPCPackage.open(filename);
XSSFReader reader = new XSSFReader(opcPackage);
>From the reader I get the workbook xml as InputStream and use custom SAX parser
to get the sheet names and the corresponding RIDs
InputStream workbookData = reader.getWorkbookData();
Using the RIDs, I get individual sheet XMLs as InputStream objects and use
custom SAX Parser to parse these. I set the sharedStringTable and styleTable
from the reader to the custom parsers to be used during the parsing of the
sheet data.
DefaultSheetParser sheetParser = new
DefaultSheetParser(reader.getSharedStringsTable(), reader.getStylesTable());
InputStream sheet = reader.getSheet(relId);
All this is working fine, but all of a sudden I start to get "IOException -
Can't obtain the input stream from /xl/sharedStrings.xml" at the
reader.getSharedStringsTable().
The files open in Excel without any error. Most of the failing files are of
size 400KB.
Once I re-start the agent server and reprocess the same files, there is no such
error.
I checked the memory settings of the JVM, there is enough memory allocated
(about 4GB) and I do not get any Out of Memory error.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]