Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 85997 invoked from network); 18 Jan 2006 23:46:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jan 2006 23:46:01 -0000 Received: (qmail 9791 invoked by uid 500); 18 Jan 2006 23:45:15 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 7823 invoked by uid 500); 18 Jan 2006 23:45:03 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 6951 invoked by uid 99); 18 Jan 2006 23:44:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2006 15:44:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.217.22.128] (HELO file1.syd.nuix.com.au) (203.217.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2006 15:38:20 -0800 Received: from [192.168.222.102] (host102.syd.nuix.com.au [192.168.222.102]) by file1.syd.nuix.com.au (Postfix) with ESMTP id D6349B7BEF for ; Thu, 19 Jan 2006 10:37:58 +1100 (EST) Message-ID: <43CED3A8.7070704@nuix.com.au> Date: Thu, 19 Jan 2006 10:47:52 +1100 From: Daniel Noll Organization: NUIX Pty Limited User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: POI Users List Subject: OutOfMemoryError opening a password-protected Word document Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've been going over my test document set with POI, extracting text from various file formats. On testing an encrypted (well, password-protected ;-)) Word document, I'm getting an OutOfMemoryError when reading the file. Looking through the bugtracker, I found a bug which is related but might not be exactly the same issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=35897 Does anyone have any code lying around which can check in advance whether these document types are password-protected? I'd like to avoid passing these docs into POI if they're going to fail like this. Daniel -- Daniel Noll Nuix Australia Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Phone: (02) 9280 0699 Fax: (02) 9212 6902 This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this message or attachment is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/