You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov> on 2011/09/24 02:02:15 UTC
Weird Eclipse errors?
Hey Guys,
I mentioned this before, but I thought it was something wrong with my JVM but
now I'm thinking that something else is up. I'm on a Mac OSX 10.6, with Eclipse
Helios Service Release 2. I've got Tika up and running with the following .classpath
and .project files:
http://pastebin.com/emFc6LKd
http://pastebin.com/ddtdWhmC
However, Eclipse keeps reporting to me that my Tika project has these errors:
Description Resource Path Location Type
Cannot cast from POIXMLDocument to XMLSlideShow XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 58 Java Problem
Cannot cast from POIXMLDocument to XMLSlideShow XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 114 Java Problem
Does anyone have this same issue or any idea what's going on? I can make them go away by
deleting the errors from my error pane but they come back and are being a "pain" (ha ha, pun).
Cheers,
Chris
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: Weird Eclipse errors?
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Nick,
Version 1.1 of ooxml-schemas fixed it. Thanks!
Cheers,
Chris
On Sep 26, 2011, at 3:16 AM, Nick Burch wrote:
> On Sun, 25 Sep 2011, Mattmann, Chris A (388J) wrote:
>> Description Resource Path Location Type
>> The method getBookmarkStartList() is undefined for the type CTP XWPFWordExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 124 Java Problem
>> The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 71 Java Problem
>> The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 136 Java Problem
>
> I think that means you're using ooxml-schemas-1.0 rather than either
> ooxml-schemas-1.1 or poi-ooxml-schemas-<poi-ver>) (the latter being what
> Maven pulls in)
>
> Nick
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: Weird Eclipse errors?
Posted by Nick Burch <ni...@alfresco.com>.
On Sun, 25 Sep 2011, Mattmann, Chris A (388J) wrote:
> Description Resource Path Location Type
> The method getBookmarkStartList() is undefined for the type CTP XWPFWordExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 124 Java Problem
> The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 71 Java Problem
> The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 136 Java Problem
I think that means you're using ooxml-schemas-1.0 rather than either
ooxml-schemas-1.1 or poi-ooxml-schemas-<poi-ver>) (the latter being what
Maven pulls in)
Nick
Re: Weird Eclipse errors?
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
OK, thanks Nick, POI 3.8 beta4 fixed most or all of them, now down to these 3:
Description Resource Path Location Type
The method getBookmarkStartList() is undefined for the type CTP XWPFWordExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 124 Java Problem
The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 71 Java Problem
The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 136 Java Problem
I've had these for a while and have no clue what they mean...
Cheers,
Chris
IOn Sep 24, 2011, at 2:46 AM, Nick Burch wrote:
> On Fri, 23 Sep 2011, Mattmann, Chris A (388J) wrote:
>> Weird. I am not seeing that in my Eclipse .classpath file:
>>
>> [chipotle:~/tmp] mattmann% grep -R poi $HOME/src/tika/.classpath
>> <classpathentry kind="var" path="M2_REPO/org/apache/poi/ooxml-schemas/1.0/ooxml-schemas-1.0.jar"/>
>> <classpathentry kind="var"
>> path="M2_REPO/org/apache/poi/poi/3.8-beta3/poi-3.8-beta3.jar"/>
>
> TaDa! 3.8 beta 3. You need 3.8 beta 4 (we upgraded on the 18th in
> r1172240)
>
> Nick
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: Weird Eclipse errors?
Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 23 Sep 2011, Mattmann, Chris A (388J) wrote:
> Weird. I am not seeing that in my Eclipse .classpath file:
>
> [chipotle:~/tmp] mattmann% grep -R poi $HOME/src/tika/.classpath
> <classpathentry kind="var" path="M2_REPO/org/apache/poi/ooxml-schemas/1.0/ooxml-schemas-1.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPO/org/apache/poi/poi/3.8-beta3/poi-3.8-beta3.jar"/>
TaDa! 3.8 beta 3. You need 3.8 beta 4 (we upgraded on the 18th in
r1172240)
Nick
Re: Weird Eclipse errors?
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Nick,
Weird. I am not seeing that in my Eclipse .classpath file:
[chipotle:~/tmp] mattmann% grep -R poi $HOME/src/tika/.classpath
<classpathentry kind="var" path="M2_REPO/org/apache/poi/ooxml-schemas/1.0/ooxml-schemas-1.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/poi/poi/3.8-beta3/poi-3.8-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/poi/poi-ooxml/3.8-beta3/poi-ooxml-3.8-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/poi/poi-ooxml-schemas/3.8-beta3/poi-ooxml-schemas-3.8-beta3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/poi/poi-scratchpad/3.8-beta3/poi-scratchpad-3.8-beta3.jar"/>
[chipotle:~/tmp] mattmann%
Any other ideas what might be causing this? I'm also seeing other errors now:
Description Resource Path Location Type
Incompatible conditional operand types POIXMLDocument and XMLSlideShow OOXMLExtractorFactory.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 81 Java Problem
The method getBookmarkStartList() is undefined for the type CTP XWPFWordExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 124 Java Problem
The method getPackagePart() is undefined for the type XSLFSlide XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 71 Java Problem
The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 70 Java Problem
The method getSldIdList() is undefined for the type CTSlideIdList XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 122 Java Problem
The method getXmlObject() is undefined for the type XSLFSlide XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 84 Java Problem
The method hasEntry(String) is undefined for the type DirectoryNode AbstractOOXMLExtractor.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 158 Java Problem
The method hasEntry(String) is undefined for the type DirectoryNode AbstractOOXMLExtractor.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 159 Java Problem
The method hasEntry(String) is undefined for the type DirectoryNode AbstractOOXMLExtractor.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 160 Java Problem
The method hasEntry(String) is undefined for the type DirectoryNode AbstractOOXMLExtractor.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 161 Java Problem
Weird...
Cheers,
Chris
On Sep 23, 2011, at 5:31 PM, Nick Burch wrote:
> On Fri, 23 Sep 2011, Mattmann, Chris A (388J) wrote:
>> However, Eclipse keeps reporting to me that my Tika project has these errors:
>>
>> Description Resource Path Location Type
>> Cannot cast from POIXMLDocument to XMLSlideShow XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 58 Java Problem
>> Cannot cast from POIXMLDocument to XMLSlideShow XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 114 Java Problem
>
> Looks like you have two copies of POI on your classpath, an old one and a
> newer one. (At a guess I'd say something like 3.8 beta 4, and an earlier
> 3.8 beta)
>
> It's a surprisingly common problem, so we have some magic code in our FAQ
> which can be used to help track down the rogue extra jar!
> http://poi.apache.org/faq.html#faq-N10006
>
> Nick
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: Weird Eclipse errors?
Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 23 Sep 2011, Mattmann, Chris A (388J) wrote:
> However, Eclipse keeps reporting to me that my Tika project has these errors:
>
> Description Resource Path Location Type
> Cannot cast from POIXMLDocument to XMLSlideShow XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 58 Java Problem
> Cannot cast from POIXMLDocument to XMLSlideShow XSLFPowerPointExtractorDecorator.java /tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml line 114 Java Problem
Looks like you have two copies of POI on your classpath, an old one and a
newer one. (At a guess I'd say something like 3.8 beta 4, and an earlier
3.8 beta)
It's a surprisingly common problem, so we have some magic code in our FAQ
which can be used to help track down the rogue extra jar!
http://poi.apache.org/faq.html#faq-N10006
Nick