poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56447] IllegalArgumentException when initializing NPOIFSFileSystem object
Date Wed, 23 Apr 2014 11:19:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56447

Nick Burch <apache@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #3 from Nick Burch <apache@gagravarr.org> ---
The NPOIFSFileSystem constructor that takes an InputStream buffers the whole
file into memory. So, your heap space needs to be at least the size of the
file, plus a bit extra. Nothing we can do to help there - you just have to
increase your heap

Alternately, NPOFSFileSystem has a constructor that takes a File, that has a
much much lower memory footprint as a File allows for Random Access
(InputStream does not)

If you increase your heap to something like 15% bigger than the file, does it
work with an InputStream?

If you switch to a File, does that fix it without a bigger heap?

-- 
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


Mime
View raw message