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/09/30 07:49:50 UTC

DO NOT REPLY [Bug 51922] New: Get exception in text extraction with poi 3.7 jar

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

             Bug #: 51922
           Summary: Get exception in text extraction  with poi 3.7 jar
           Product: POI
           Version: 3.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: HDF
        AssignedTo: dev@poi.apache.org
        ReportedBy: baraiya.yatin@gmail.com
    Classification: Unclassified


Created attachment 27638
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27638
Problem getting in the attached zip file's documents.

Currently i am using the apache tika 0.9[plus tika 0.9's dependent jar file]
and apache poi 3.7 jar for text extraction .

i get the exception when i used some Microsoft office document. i have attached
document zip file. Please check it with said jar file.

i get the following exception when  we upload '1_1.doc' document from the
attached zip file.

Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException
from org.apache.tika.parser.microsoft.OfficeParser@d8e54c
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:199)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
    at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:135)
    at
org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:232)
    ... 1 more
Caused by: java.lang.NullPointerException
    at
org.apache.poi.hwpf.sprm.CharacterSprmUncompressor.uncompressCHP(CharacterSprmUncompressor.java:39)
    at org.apache.poi.hwpf.model.CHPX.getCharacterProperties(CHPX.java:61)
    at org.apache.poi.hwpf.usermodel.CharacterRun.<init>(CharacterRun.java:98)
    at org.apache.poi.hwpf.usermodel.Range.getCharacterRun(Range.java:797)
    at
org.apache.poi.hwpf.model.PicturesTable.getAllPictures(PicturesTable.java:191)
    at
org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:430)
    at
org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:420)
    at
org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:75)
    at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:182)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
    ... 4 more



i get the following exception when  we upload 'Book1.xlsb' and 'MSPPT2007.thmx'
documents from the attached zip file.

Caused by: org.apache.tika.exception.TikaException: TIKA-418: RuntimeException
while getting content for thmx and xps file types
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:86)
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:67)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
    at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:135)
    at
org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:232)
    ... 1 more
Caused by: java.lang.IllegalArgumentException: No supported documents found in
the OOXML package (found
application/vnd.ms-excel.sheet.binary.macroEnabled.main)
    at
org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:191)
    at
org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:152)
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:65)
    ... 6 more

i get the following exception when  we upload 'MSPPT2007.xps' document from the
attached zip file.

Caused by: org.apache.tika.exception.TikaException: Error creating OOXML
extractor
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:90)
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:67)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
    at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
    at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:135)
    at
org.apache.tika.parser.ParsingReader$ParsingTask.run(ParsingReader.java:232)
    ... 1 more
Caused by: java.lang.IllegalArgumentException: Invalid OOXML Package received -
expected 1 core document, found 0
    at
org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:161)
    at
org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:152)
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:65)
    ... 6 more


Please try to resolve this issue.

Thanks & Regards
Yatin Baraiya

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #5 from yatin <ba...@gmail.com> 2011-10-04 06:31:27 UTC ---
ok,

first of thanks you for providing the solution of this bug.

can you provide me the information regarding the tika 0.10 jar release date
because i am looking for tika-core-0.10.jar,tika-parsers-0.10.jar,poi-3.8.jar.

as per your given link is for source download link.

Thanks
Yatin Baraiya

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #9 from Nick Burch <ni...@alfresco.com> 2011-10-06 13:08:44 UTC ---
The Tika users list is the right place for a question like that

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #2 from yatin <ba...@gmail.com> 2011-09-30 05:54:31 UTC ---
Created attachment 27640
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27640
exception with poi 3.7 jar

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #6 from yatin <ba...@gmail.com> 2011-10-04 06:40:33 UTC ---
for which solution for this document "MSPPT2007.xps"  with tika 0.9 and poi
3.7.

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #4 from Maxim Valyanskiy <ma...@gmail.com> 2011-09-30 07:15:15 UTC ---
1) NPE in CharacterSprmUncompressor.uncompressCHP is fixed in current POI. Tika
0.10 release will be released soon, try its release candidate
https://people.apache.org/~mattmann/apache-tika-0.10/rc1/

2) xlsb and thmx formats are completely unsupported (as far as I know)

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #3 from yatin <ba...@gmail.com> 2011-09-30 05:54:44 UTC ---
Created attachment 27641
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27641
exception with poi 3.7 jar

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #1 from yatin <ba...@gmail.com> 2011-09-30 05:54:03 UTC ---
Created attachment 27639
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27639
exception with poi 3.7

hear i can't add the zip file thats why add each document separately.

Please you should only find the document not zip file.

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

--- Comment #8 from yatin <ba...@gmail.com> 2011-10-06 12:37:59 UTC ---
hy

thanks for providing me the download link.

but this link is for tika-app-0.10.jar file and i am looking for the 
tika-core-0.10.jar,tika-parsers-0.10.jar,poi-3.8.jar and its all dependent jar
file.

or 
is tika-app-0.10.jar include all the jar which i looking for?

Regard
Yatin Baraiya

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

yatin <ba...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

yatin <ba...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |baraiya.yatin@gmail.com

-- 
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 51922] Get exception in text extraction with poi 3.7 jar

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

Nick Burch <ni...@alfresco.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Nick Burch <ni...@alfresco.com> 2011-10-04 09:25:12 UTC ---
(In reply to comment #5)
> can you provide me the information regarding the tika 0.10 jar release date
> because i am looking for tika-core-0.10.jar,tika-parsers-0.10.jar,poi-3.8.jar.

Tika 0.10 is available from the Tika download page:
http://tika.apache.org/download.html

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