Bug 55805 - Error When Attempting to Save Workbook with New XSSF Table
Summary: Error When Attempting to Save Workbook with New XSSF Table
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.10-dev
Hardware: Macintosh All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2013-11-21 00:52 UTC by David Wilt
Modified: 2015-09-13 18:45 UTC (History)
1 user (show)

Contains code to create XSSF Table (5.49 KB, text/plain)
2013-11-21 16:36 UTC, David Wilt
Provides routine for saving workbook file (9.87 KB, text/plain)
2013-11-21 16:37 UTC, David Wilt
Workbook in which table is to be created. (28.02 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2013-11-21 16:38 UTC, David Wilt

Note You need to log in before you can comment on or make changes to this bug.
Description David Wilt 2013-11-21 00:52:39 UTC

Comment 1 David Wilt 2013-11-21 00:56:07 UTC
I attempted to create a new XSSF table on an existing worksheet. When I attempted to write the workbook with the table to disk, I received the error message below. Please let me know what additional information you need.

Thanks very much.

		 * [M2.4] : The package implementer shall require that the Content Types
		 * stream contain one of the following for every part in the package:
		 * One matching Default element, One matching Override element, Both a
		 * matching Default element and a matching Override element, in which
		 * case the Override element takes precedence.
		if (this.container != null && this.container.getPart(partName) != null) {
			throw new OpenXML4JRuntimeException(
					"Rule M2.4 exception : this error should NEVER happen, if so please send a mail to the developers team, thanks !");
		return null;
Comment 2 Nick Burch 2013-11-21 10:26:14 UTC
Please could you upload the file you were working on, and the code used to trigger the exception?
Comment 3 David Wilt 2013-11-21 16:36:46 UTC
Created attachment 31063 [details]
Contains code to create XSSF Table
Comment 4 David Wilt 2013-11-21 16:37:40 UTC
Created attachment 31064 [details]
Provides routine for saving workbook file
Comment 5 David Wilt 2013-11-21 16:38:40 UTC
Created attachment 31065 [details]
Workbook in which table is to be created.
Comment 6 David Wilt 2013-11-21 16:41:46 UTC
Re-set status to "NEW" based on providing requested information.
Comment 7 Dominik Stadler 2014-08-31 19:03:50 UTC
Any chance of putting this into a ready-to-run, self-contained unit-test for POI together with the sample-file so we can reproduce this? The current code is hard to modify into one and does not cleanly compile at all as some classes are missing (UserOutput, FileSelctor,...) and a lot of stuff is done that is not relevant to the problem at all.
Comment 8 Dominik Stadler 2015-09-13 18:45:15 UTC
No update for a year, closing this as INVALID for now, please reopen with more information if this is still a problem for you.