Donahue, Michael wrote:
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.
My memory is actually already set to -Xmx512m (our application requires this sort of memory limit for exactly this sort of reason) and the DOC file is only about 170kB (I've opened and extracted text from 8MB DOC files without any issues in the past couple of days.)

The test .doc file on the bug tracker gives NegativeArraySizeException, which may even be the same issue: creating an array with -5 elements versus creating an array with a billion elements... both fairly likely to happen with scrambled data.

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/

Reply via email to