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 D73BA10ADD for ; Fri, 28 Aug 2015 07:37:57 +0000 (UTC) Received: (qmail 5008 invoked by uid 500); 28 Aug 2015 07:37:52 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 4967 invoked by uid 500); 28 Aug 2015 07:37:52 -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 4956 invoked by uid 99); 28 Aug 2015 07:37:52 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 07:37:52 +0000 Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPS id 83ABA1A0256 for ; Fri, 28 Aug 2015 07:37:52 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id A601C604D4; Fri, 28 Aug 2015 07:37:51 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 58294] New: File crashes while opening XLSX after writing new pivot table to the workBook. Date: Fri, 28 Aug 2015 07:37:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: XSSF X-Bugzilla-Version: 3.12-FINAL X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: thatisamit@gmail.com 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: bug_id short_desc product version rep_platform bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=58294 Bug ID: 58294 Summary: File crashes while opening XLSX after writing new pivot table to the workBook. Product: POI Version: 3.12-FINAL Hardware: PC Status: NEW Severity: critical Priority: P2 Component: XSSF Assignee: dev@poi.apache.org Reporter: thatisamit@gmail.com Created attachment 33045 --> https://bz.apache.org/bugzilla/attachment.cgi?id=33045&action=edit Code and generated file. test1.xlsx and test2.xlsx are original file without saving test1.xlsx form excel. My Environment is windows and this is not tested on unix. I am generating a xlsx file using jasper report and save it to locally (test1.xlsx). This file is fine and open without error or crash. When i am trying trying to add the pivot table and saving it as new file test2.xlsx (Can also do in the same file but same result) the code works fine. But when i open test2.xlsx, this crashes with the following error in Excel. "Removed Feature: PivotTable report from /xl/pivotCache/pivotCacheDefinition1.xml part (PivotTable cache) Removed Feature: PivotTable report from /xl/pivotTables/pivotTable1.xml part (PivotTable view) Removed Records: Workbook properties from /xl/workbook.xml part (Workbook) Repaired Records: Cell information from /xl/worksheets/sheet2.xml part " Now if i Open the test1.xlsx and save it again without any modification and run my code again, the test2.xlsx file generates fine and opening properly. i am attaching test1.xlsx, test2.xlsx and my code for the reference. -- 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