Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 455111168A for ; Fri, 16 May 2014 21:10:58 +0000 (UTC) Received: (qmail 68978 invoked by uid 500); 16 May 2014 10:42:36 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 52939 invoked by uid 500); 16 May 2014 10:25:45 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 46675 invoked by uid 99); 16 May 2014 10:19:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 10:19:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 09:04:01 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 2C8B71B9CB; Fri, 16 May 2014 09:03:41 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 56170] Exception when adding content to tables that have no headers Date: Fri, 16 May 2014 09:03:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: XSSF X-Bugzilla-Version: 3.10 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominik.stadler@gmx.at X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=56170 --- Comment #2 from Dominik Stadler --- The actual point where the Cell contents becomes invalid is here: CTRowImpl(XmlComplexContentImpl).arraySetterHelper(XmlObject[], QName) line: 1149 CTRowImpl.setCArray(CTCell[]) line: not available XSSFRow.onDocumentWrite() line: 466 XSSFSheet.write(OutputStream) line: 2761 XSSFSheet.commit() line: 2725 XSSFSheet(POIXMLDocumentPart).onSave(Set) line: 322 XSSFWorkbook(POIXMLDocumentPart).onSave(Set) line: 326 XSSFWorkbook(POIXMLDocument).write(OutputStream) line: 173 XSSFTestDataSamples.writeOutAndReadBack(R) line: 68 TestXSSFCell.test56170() line: 299 Unfortunatly the XMLBeans framework is very picky about objects being used in more than one place, sometimes setting objects to "invalid" if they are removed from some collection, while we are still using it in other places. Your change basically just checks if the row or any cell inside it became invalid by some prior action, so it is not a full fix, but just does not do anything any more with the cell as soon as it becomes invalid. -- 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