Summary: | OpenXML4JRuntimeException: Rule M2.4 exception | ||
---|---|---|---|
Product: | POI | Reporter: | Stefan <limesdevelopment> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | ted.ji |
Priority: | P2 | ||
Version: | 3.13-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Stefan
2016-03-10 00:57:35 UTC
What about the "and attach a file that triggers it" in the error message? Without a sample file that triggers the error, it is hard to say if the file is simply malformed or POI does not read the format correctly here. Oops, sorry, just saw the additional part in the description. *** Bug 59159 has been marked as a duplicate of this bug. *** I did a short review of this report, the provided code still depends on the actual input-files, so we cannot really reproduce this without some sample files and preferably a self-sufficient unit-test which reproduces the problem more easily. This will make it much easier for others to reproduce and actually take a look at the problem. > wb.close();
> fo = new FileOutputStream(new File(lokacijaResursa+"\\statistika-"+folder+".xlsx"));
> wb.write(fo);
You cannot use a workbook after it has been closed.
Close your workbook after wb.write and your error should go away.
*** Bug 61297 has been marked as a duplicate of this bug. *** |