You may want to try increasing your memory to see if the issue goes away.
The JVM parameters I use are "-Xms256m -Xmx512m".  You could also try
decrypting / un-protecting your workbook long enough to see if you are
really hitting the decrypting / un-protect issue you mentioned.  Maybe you
just have a large workbook.

Just a thought....

- MJD

-----Original Message-----
From: Daniel Noll [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 5:48 PM
To: POI Users List
Subject: OutOfMemoryError opening a password-protected Word document

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: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to