You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Emmanuel COLLIN <ma...@wanadoo.fr> on 2009/04/07 11:19:23 UTC

(Unknown)

 
Hi,

i'm getting the following exception when trying to parse a MS Word document (tika-0.3.jar & poi-3.5-beta5.jar)

Throwable: java.lang.NoSuchMethodError: getRoot
Stack Trace:
java.lang.NoSuchMethodError: getRoot
        at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:66)

What can i do ?

Emmanuel




Emmanuel Collin mailto:ecollin@awat.fr AWAT SAS 60 rue du dessous des berges 75013 Paris 01 44 24 74 82

Re:

Posted by Emmanuel COLLIN <ma...@wanadoo.fr>.
Thx a lot. An older version of POI was referenced by the classpath of my application server...
Emmanuel




> Message du 07/04/09 11:31
> De : "Jukka Zitting" 
> A : tika-user@lucene.apache.org, "Emmanuel COLLIN" 
> Copie à : 
> Objet : Re:
> 
> 
> Hi,
> 
> On Tue, Apr 7, 2009 at 11:19 AM, Emmanuel COLLIN wrote:
> > i'm getting the following exception when trying to parse a MS Word document
> > (tika-0.3.jar & poi-3.5-beta5.jar)
> >
> > Throwable: java.lang.NoSuchMethodError: getRoot
> > Stack Trace:
> > java.lang.NoSuchMethodError: getRoot
> >         at
> > org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:66)
> >
> > What can i do ?
> 
> Double-check your classpath. A NoSuchMethodError is a clear sign of a
> jar version mismatch. Can you for example have multiple different
> copies of POI in your classpath?
> 
> BR,
> 
> Jukka Zitting
> -------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
> 
> 
> 
Emmanuel Collin mailto:ecollin@awat.fr AWAT SAS 60 rue du dessous des berges 75013 Paris 01 44 24 74 82

Re:

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Tue, Apr 7, 2009 at 11:19 AM, Emmanuel COLLIN <ma...@wanadoo.fr> wrote:
> i'm getting the following exception when trying to parse a MS Word document
> (tika-0.3.jar & poi-3.5-beta5.jar)
>
> Throwable: java.lang.NoSuchMethodError: getRoot
> Stack Trace:
> java.lang.NoSuchMethodError: getRoot
>         at
> org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:66)
>
> What can i do ?

Double-check your classpath. A NoSuchMethodError is a clear sign of a
jar version mismatch. Can you for example have multiple different
copies of POI in your classpath?

BR,

Jukka Zitting