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 2011/02/11 04:37:37 UTC

DO NOT REPLY [Bug 50761] New: in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

           Summary: in POI 2.5.1, excel file with data validation cell
                    selected, throw
                    java.lang.ArrayIndexOutOfBoundsException         at
                    java.lang.System.arraycopy(Native Method)         at
                    org.apache.poi.hssf.record.UnknownRecord.<init>(Unknow
                    nRecord.java:62 )
           Product: POI
           Version: 2.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: tealeeseng@gmail.com


Created an attachment (id=26638)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26638)
To replicate the issue

excel file with data validation cell selected, throw
java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at
org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62
)
        at
org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:5
7)
        at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
        at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
        at org.apache.poi.hssf.dev.BiffViewer.createRecord(BiffViewer.java:587)
        at
org.apache.poi.hssf.dev.BiffViewer.createRecords(BiffViewer.java:114)

        at org.apache.poi.hssf.dev.BiffViewer.run(BiffViewer.java:72)
        at org.apache.poi.hssf.dev.BiffViewer.main(BiffViewer.java:649)

If i select simple text cell before saving the excel file, the exception gone
away. I'm using Excel 2002 SP3.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50761] in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

Lee Seng <te...@gmail.com> changed:

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

--- Comment #4 from Lee Seng <te...@gmail.com> 2011-02-11 03:26:22 EST ---
Hi, Yegor,
What are the info required to fix this issue?
does poi 3.7 runs in jdk 1.4?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50761] in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

--- Comment #1 from Lee Seng <te...@gmail.com> 2011-02-10 22:39:58 EST ---
Created an attachment (id=26639)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26639)
simple text cell selected, no issue

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50761] in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

--- Comment #2 from Lee Seng <te...@gmail.com> 2011-02-10 22:43:00 EST ---
Following stack trace will be displayed for HSSF workbook opening.


 java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
.
.
.
.
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at
org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
        at
org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
        at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
        at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
        ... 69 more



and


 org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance, the following exception occured: null
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:237)
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50761] in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

Yegor Kozlov <ye...@dinom.ru> changed:

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

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> 2011-02-11 03:11:01 EST ---
POI 2.5.1 is six years old! Lots of bugs have been fixed since then. Please try
the latest stable release POI-3.7. 

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50761] in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

Yegor Kozlov <ye...@dinom.ru> changed:

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

--- Comment #5 from Yegor Kozlov <ye...@dinom.ru> 2011-02-11 05:44:08 EST ---
(In reply to comment #4)
> Hi, Yegor,
> What are the info required to fix this issue?
> does poi 3.7 runs in jdk 1.4?

POI 3.7 requires JDK 1.5. The last release supporting JDK 1.4 was POI 3.2
released in Oct 2008.

I recommend you to upgrade to the latest and greatest POI 3.7, it a huge step
forward as compared to the version 2.5.

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


[Bug 50761] in POI 2.5.1, excel file with data validation cell selected, throw java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.poi.hssf.record.UnknownRecord.(UnknownRecord.java:62 )

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50761

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #6 from Dominik Stadler <do...@gmx.at> ---
no response in a long time => resolving for now, please reopen with more
information if this is still an issue

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