Bug 58906 - Error writing to blank workbook
Summary: Error writing to blank workbook
Status: RESOLVED WORKSFORME
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.13-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 22:16 UTC by Paul
Modified: 2016-02-12 07:44 UTC (History)
0 users



Attachments
This is the file that causes the exception (2.89 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2016-01-21 22:16 UTC, Paul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2016-01-21 22:16:28 UTC
Created attachment 33474 [details]
This is the file that causes the exception

After creating an empty workbook and creating a sheet, I close the workbook and use an existing FileOutputStream with the location of the workbook to create a new FileOutputStream, and try to write out using the XSSFWorkbook.write(File) method, and receive "Rule M2.4 exception" which says it should never happen and to submit a bug.

Thanks,
Paul
Comment 1 Javen O'Neal 2016-01-21 23:18:10 UTC
> use an existing FileOutputStream
That might be the problem.

Otherwise, your explanation sounds pretty much like standard, working code. Could you post an example of your code that demonstrates the problem?
Comment 2 Dominik Stadler 2016-02-12 07:44:09 UTC
No response, so closing WORKSFORME for now, please reopen with more information if this is still an issue for you.