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 89C0310EAB for ; Wed, 23 Apr 2014 10:01:20 +0000 (UTC) Received: (qmail 55760 invoked by uid 500); 23 Apr 2014 10:01:19 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 55472 invoked by uid 500); 23 Apr 2014 10:01:18 -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 55463 invoked by uid 99); 23 Apr 2014 10:01:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2014 10:01:16 +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; Wed, 23 Apr 2014 10:01:15 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 755EFA9CC; Wed, 23 Apr 2014 10:00:55 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 56447] IllegalArgumentException when initializing NPOIFSFileSystem object Date: Wed, 23 Apr 2014 10:00:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: POIFS X-Bugzilla-Version: 3.10 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mskan@dtu.dk 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_status 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=56447 mskan@dtu.dk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #2 from mskan@dtu.dk --- I have now created a minimal example that throws the following exception: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57) at java.nio.ByteBuffer.allocate(ByteBuffer.java:331) at org.apache.poi.poifs.filesystem.NPOIFSFileSystem.(NPOIFSFileSystem.java:273) at TestApp.main(TestApp.java:16) The values in NPOIFS are: _header.getBATCount() = 493 maxSize = 2067795968 The size of the file that I am opening is 3,365,793,792 bytes. (In reply to Nick Burch from comment #1) > Any chance you could attach a debugger, and check the values in NPOIFS of > maxSize (line 274) and _header.getBATCount()? -- 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