poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30008] - ArrayIndexOutOfBounds exception in UnknownRecord.java and Nullpointer Exception in HSSFSheet.java
Date Wed, 04 May 2005 23:55:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30008





------- Additional Comments From amit_vijayant@yahoo.com  2005-05-05 01:55 -------
The Excel template when read using HSSF throws the arrayIndexException. Just 
for kicks when I altered the code in UnknownRecord (Line 62):
from System.arraycopy(data, offset, thedata, 0, size); to

try {
            System.arraycopy(data, offset, thedata, 0, size);
        } catch (Exception e) {
            // Hack to clear the bug
            thedata = new byte[data.length - offset];
            System.arraycopy(data, offset, thedata, 0, data.length - offset);
        }

things went ahead fine. But I guess this may not be the correct solution even 
though it worked for me. I can provide a test template if it is of any help 
(amit_vijayant@yahoo.com).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message