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 2007/01/26 04:03:01 UTC
DO NOT REPLY [Bug 41469] New: - PowerPointExtractor. error
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=41469>.
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=41469
Summary: PowerPointExtractor.<init> error
Product: POI
Version: 3.0-dev
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: HSLF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: cqm56@yahoo.com.cn
code:
PowerPointExtractor pe = new PowerPointExtractor(getStreamToIndex());//error
System.out.println(pe.getNotes());
contents = pe.getText(true , true);
System.out.println(contents);
Exception:
java.lang.ArrayIndexOutOfBoundsException: 8
at org.apache.poi.util.HexDump.toHex(HexDump.java:406)
at org.apache.poi.util.HexDump.toHex(HexDump.java:397)
at org.apache.poi.hpsf.UnsupportedVariantTypeException.<init>
(UnsupportedVariantTypeException.java:46)
at org.apache.poi.hpsf.ReadingNotSupportedException.<init>
(ReadingNotSupportedException.java:44)
at org.apache.poi.hpsf.VariantSupport.read(VariantSupport.java:276)
at org.apache.poi.hpsf.Property.<init>(Property.java:162)
at org.apache.poi.hpsf.Section.<init>(Section.java:280)
at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:453)
at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:248)
at org.apache.poi.hpsf.PropertySetFactory.create
(PropertySetFactory.java:60)
at org.apache.poi.POIDocument.getPropertySet(POIDocument.java:91)
at org.apache.poi.POIDocument.readProperties(POIDocument.java:68)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:128)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:94)
at org.apache.poi.hslf.extractor.PowerPointExtractor.<init>
(PowerPointExtractor.java:84)
at lius.index.powerpoint.PPTIndexer.getContent(PPTIndexer.java:72)
--
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 41469] - PowerPointExtractor. error
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=41469>.
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=41469
klute@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From klute@apache.org 2007-01-29 21:46 -------
I cannot see any problems with the document using a) poibrowser to display the
properties and b) running the HPSF testcases with the document in question in
src/testcases/org/apache/poi/hpsf/data.
Please retry with the latest subversion repository snapshot and reopen the bug
if necessary.
--
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 41469] - PowerPointExtractor. error
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=41469>.
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=41469
------- Additional Comments From cqm56@yahoo.com.cn 2007-01-28 19:11 -------
I don't change properties ,I just writed by prquick-guide.pdf simply.
code:
public String getContent() {
String contents = "";
try {
/**error*/
PowerPointExtractor pe = new PowerPointExtractor
(getStreamToIndex()); //getStreamToIndex() is InputStream
System.out.println(pe.getNotes());
contents = pe.getText(true , true);
System.out.println(contents);
/**error too*/
/*SlideShow ss = new SlideShow(new HSLFSlideShow
(getStreamToIndex()));
String text = ss.getSlides()[0].getNotesSheet
().toString();
System.out.println(text);*/
/****** success ****/
/*QuickButCruddyTextExtractor qt = new
QuickButCruddyTextExtractor(getStreamToIndex());
contents = qt.getTextAsString();
System.out.println(contents);*/
} catch (Exception ex) {
ex.printStackTrace();
logger.error(ex.getMessage());
}
return contents;
}
--
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 41469] - PowerPointExtractor. error
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=41469>.
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=41469
------- Additional Comments From cqm56@yahoo.com.cn 2007-01-29 18:32 -------
Created an attachment (id=19482)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19482&action=view)
edit with Microsoft Office 2003
I am a chinese user
--
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 41469] - PowerPointExtractor. error
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=41469>.
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=41469
cqm56@yahoo.com.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
------- Additional Comments From cqm56@yahoo.com.cn 2007-01-29 22:08 -------
thanks for your solution.
--
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 41469] - PowerPointExtractor. error
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=41469>.
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=41469
------- Additional Comments From nick@torchbox.com 2007-01-29 02:48 -------
Can you attach the document you're working with?
You're not changing the properties, but HSLF still tries to load them when you
init the HSLFSlideShow object, and the HPSF properties stuff isn't liking your
document.
--
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 41469] - PowerPointExtractor. error
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=41469>.
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=41469
nick@torchbox.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
Component|HSLF |HPFS
------- Additional Comments From nick@torchbox.com 2007-01-26 04:38 -------
Seems to be an error from HPSF, when HSLF loads the properties.
Could you attach the problem file to the bug, so some can look into why HPSF
isn't liking it?
--
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/