You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Victor Bartel <vi...@gmail.com> on 2011/05/22 08:17:08 UTC

Some troubles with ArrayIndexOutOfBoundsException

Greetings,

  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. Currently I'm interested by textual
data extraction and what I get when in the end of processing POI
library throws this kind of not caught exception ? The processing dies
and I get nothing. Is it really complicate for you to produce stable
and secured code, capable to finish correctly this kind of tasks ?
Because for the moment to get working POI correctly I have to hack a
lot of classes with javassist by try-catching suspect methods and
constructors.

-- 
Best regards,
Victor Bartel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org