Summary: | got this message: this error should NEVER happen while trying to copy rows in Excel | ||
---|---|---|---|
Product: | POI | Reporter: | Ted Ji <ted.ji> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.16-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
got this message: this error should NEVER happen!
Excel file causing problem |
Description
Ted Ji
2017-07-13 21:50:06 UTC
Hi Ted, Can you attach the Backtesting_template.xlsx file and confirm that you are using poi 3.16? Created attachment 35133 [details]
Excel file causing problem
I since fixed my typos but here the info.
I am using poi-3.1.6-beta2 and I've attached the Excel file
Can you also include the code that produced this error message? This Rule M2.4 occurs when you try to copy an XML bean from one workbook (DOM) to another. Nevermind. Code is in attachment 35132 [details].
The problem is that you're closing the pkg in a for loop and then closing it again at the exit.
You should only close the OPCPackage once,and after it's closed, the package and anything that relies on the package (such as the XSSFWorkbook) can no longer be used.
|