On Mon, 23 May 2011, Victor Bartel wrote:
Last week I had some troubles with WordExtractor on POI 3.7 / 3.8beta2. Library throws ArrayIndexOutOfBoundsException during tabular data parsing and extraction. I've analysed the part of source code that throw this exception, especially ListTables constructor. This part represents low-level data manipulation / extraction API that deal with arrays of bytes. When you are not in perfect word et you need to works with 3rd users supplied data you have a risk to "meet" not correct data and produce a lot of errors. To avoid a such of situation you can use try / catch blocks.
Normally if you get an ArrayIndexOutOfBoundsException from the bowels of the library then that's a sign that there's an incorrect assumption somewhere in the code. The prefered fix is to identify that mistake, and fix it, rather than blindly ignoring the problem.
It sounds like you've done a fair bit of debugging on this, have you been able to identify what's going wrong? If so, please open a new bug in bugzilla and upload the patch!
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
