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/03/09 04:10:03 UTC

DO NOT REPLY [Bug 50896] New: Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

           Summary: Extract text from word ,Get StyleSheet ArrayOutOfBound
                    Exception
           Product: POI
           Version: unspecified
          Platform: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: kyowxf2003@163.com


Use org.apache.poi.hwpf.usermodel.Range.getParagraph method ,will throw
ArrayOutOfBound exception in
org.apache.poi.hwpf.model.StyleSheet.getParagraphStyle  at line 325 ,
and org.apache.poi.hwpf.model.StyleSheet.getCharacterStyle  at line 315 ,

-- 
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 50896] Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

WangXinFeng <ky...@163.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |3.7
         OS/Version|                            |All

-- 
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 50896] Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

--- Comment #1 from WangXinFeng <ky...@163.com> 2011-03-08 22:10:41 EST ---
Created an attachment (id=26746)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26746)
Judge the array index

-- 
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 50896] Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

Sergey Vladimirov <vl...@gmail.com> changed:

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

--- Comment #2 from Sergey Vladimirov <vl...@gmail.com> 2011-07-07 11:50:52 UTC ---
Wang,

Could you provide a doc file (test case) that gives an error because of
ArrayOutOfBoundException?

Sergey

-- 
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 50896] Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

--- Comment #4 from Trejkaz (pen name) <tr...@trypticon.org> 2012-02-22 00:20:43 UTC ---
This is the best I can find from the docs:

"If an istd value refers to an empty or nonexistent style, or to a style of a
different type, a later Prl such as sprmPIstd or sprmPIstdPermute MUST change
the istd to a valid value. Applying an istd that refers to an empty or
nonexistent style, or to a style of a different type, is equivalent to applying
the paragraph and character document default formatting (while preserving the
same set of properties as when applying an istd.)"

This does appear to be what the change is doing, it just didn't give a
reference to the docs so it wasn't very clear.

-- 
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 50896] Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

--- Comment #3 from Trejkaz (pen name) <tr...@trypticon.org> 2012-02-22 00:09:25 UTC ---
A customer of ours has found a file which throws this error as well, and it's
another case where the file contains confidential information so we can't
attach it. :(

It's unclear to me whether this is a bug in POI or an issue with the file
itself (if it's the latter then the issue on our end can be closed without
fixing anything.) Essentially there is an index stored in the file which refers
to an array element which doesn't actually exist, which smells like an issue
with the file.

Does someone know the specification well enough to make a call on this?

-- 
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 50896] Extract text from word ,Get StyleSheet ArrayOutOfBound Exception

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

--- Comment #5 from Nick Burch <ni...@alfresco.com> 2012-02-22 04:06:16 UTC ---
Can you try running the Binary File Format Validator from Microsoft against the
troublesome file, and see if that says it's valid or not?

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