From dev-return-39284-archive-asf-public=cust-asf.ponee.io@poi.apache.org Wed Jan 10 18:38:28 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 4D4D418072F for ; Wed, 10 Jan 2018 18:38:28 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3D035160C2E; Wed, 10 Jan 2018 17:38:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 83859160C1E for ; Wed, 10 Jan 2018 18:38:27 +0100 (CET) Received: (qmail 88870 invoked by uid 500); 10 Jan 2018 17:38:26 -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 88859 invoked by uid 99); 10 Jan 2018 17:38:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2018 17:38:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 27E821A022D for ; Wed, 10 Jan 2018 17:38:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.711 X-Spam-Level: X-Spam-Status: No, score=-0.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id t9hcckCITnba for ; Wed, 10 Jan 2018 17:38:25 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8195E5FBA2 for ; Wed, 10 Jan 2018 17:38:24 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id BCF70E00A7 for ; Wed, 10 Jan 2018 17:38:23 +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 7001061130; Wed, 10 Jan 2018 17:38:20 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 61987] Updating excel file opended with OPCPackage throws: OpenXML4JRuntimeException: Rule M2.4 exception Date: Wed, 10 Jan 2018 17:38:20 +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.16-FINAL X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: Alain.Bearez@cua.li X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: quoted-printable 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=3D61987 --- Comment #2 from Alain Fagot Bearez --- Take care about the order you are closing the resources: FileOutputStream outputStream =3D new FileOutputStream("JavaBooks.xlsx"); workbook.write(outputStream); outputStream.close(); workbook.close(); //inputStream.close(); pkg.close(); Otherwise you are trying to write into a package (document) that has been closed. This is a classical duplicate of https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60102 --=20 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