https://bz.apache.org/bugzilla/show_bug.cgi?id=60776
Bug ID: 60776
Summary: Opening an excel workbook with WorkbookFactory twice
results in IOException
Product: POI
Version: 3.15-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: dev@poi.apache.org
Reporter: robgemen@hetnet.nl
Target Milestone: ---
this is the code that fails:
InputStream inputStream = null;
inputStream = new FileInputStream(inputFile);
Workbook workbook = WorkbookFactory.create(inputStream);
Workbook workbook2 = WorkbookFactory.create(inputStream);
The inputFile is just a regular File that contains a valid xls file. No strange
stuff.
The first creationof a workbook succeeds. Doing the same thing twice (creating
workbook2) gives an IOException. No Idea why bu I guess this should be
possible. Inputstream is still a valid Object and hasn't changed. So why isn't
possible to create a second workbook object out of it?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
|