You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2006/11/23 14:45:27 UTC
DO NOT REPLY [Bug 41026] New: - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
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=41026>.
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=41026
Summary: [PATCH] ArrayIndexOutOfBoundsException in
ValueRecordsAggregate.rowHasCells
Product: POI
Version: 3.0-dev
Platform: All
OS/Version: other
Status: NEW
Severity: major
Priority: P2
Component: HSSF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: julien.ayme@gmail.com
Calling the method ValueRecordsAgregate.rowHasCells(int) with the parameter
equals to the length of the records throws an ArrayIndexOutOfBoundsException.
This happened when I called the method HSSFWorkbook.write(OutputStream):
The stacktrace:
java.lang.ArrayIndexOutOfBoundsException: 30
at
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.rowHasCells(ValueRecordsAggregate.java:195)
at org.apache.poi.hssf.model.Sheet.getSize(Sheet.java:2112)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:920)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:875)
I join two patches:
One for ValueRecordsAggregate, and one for TestValueRecordsAggregate.
--
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/
Re: DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by Rajneesh Gupta <ra...@logicacmg.com>.
<bugzilla <at> apache.org> writes:
>
> 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=41026>.
> 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=41026
>
> ------- Additional Comments From julien.ayme <at> gmail.com 2006-11-23 05:48
-------
> Created an attachment (id=19166)
> --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19166&action=view)
> Patch for the class org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate
>
> A little bug: just an '>=' instead of '>' and its all done.
>
Modifying the source of
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.rowHasCells method
dosent work either. [ if (row >= records.length) ]
Same exception is thrown.
---------------------------------------------------------------------
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
julien.ayme@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From julien.ayme@gmail.com 2007-03-05 02:38 -------
This has been fixed with the commit
<a href="http://svn.apache.org/viewvc?view=rev&revision=513609">#513609</a>
--
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
------- Additional Comments From rajneesh.gupta@logicacmg.com 2006-12-03 04:12 -------
(In reply to comment #0)
> Calling the method ValueRecordsAgregate.rowHasCells(int) with the parameter
> equals to the length of the records throws an ArrayIndexOutOfBoundsException.
> This happened when I called the method HSSFWorkbook.write(OutputStream):
>
> The stacktrace:
> java.lang.ArrayIndexOutOfBoundsException: 30
> at
>
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.rowHasCells(ValueRecordsAggregate.java:195)
> at org.apache.poi.hssf.model.Sheet.getSize(Sheet.java:2112)
> at org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:920)
> at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:875)
>
> I join two patches:
> One for ValueRecordsAggregate, and one for TestValueRecordsAggregate.
Modifying the source of
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.rowHasCells method
dosent work either. [ if (row >= records.length) ]
Same exception is thrown again.
--
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
------- Additional Comments From avik@apache.org 2007-01-11 04:04 -------
Can someone please put in a testcase that triggers this bug? Its quite
difficult to fix otherwise. Thanks.
--
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
------- Additional Comments From avik@apache.org 2007-01-16 07:51 -------
The same expection is thrown now on reading the file attached to Bug 37684 .
Without a testcase here, cannot confirm if the bug is the same... the symptoms
seem similar. The attached patch does not fix this.
--
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
julien.ayme@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
------- Additional Comments From julien.ayme@gmail.com 2006-11-23 05:48 -------
Created an attachment (id=19166)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19166&action=view)
Patch for the class org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate
A little bug: just an '>=' instead of '>' and its all done.
--
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/
DO NOT REPLY [Bug 41026] - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Posted by bu...@apache.org.
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=41026>.
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=41026
------- Additional Comments From julien.ayme@gmail.com 2006-11-23 05:50 -------
Created an attachment (id=19167)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19167&action=view)
Patch for the class
org.apache.poi.hssf.record.aggregates.TestValueRecordsAggregate
Adds a test corresponding to the bug.
--
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/