lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Alexandro Becker <caarl...@gmail.com>
Subject Re: POI error while extracting docx document
Date Tue, 26 Feb 2013 17:40:43 GMT
sorry:
http://stackoverflow.com/questions/15095202/extracting-docx-files-with-tika-in-apache-solr-gives-nosuchmethod-error


On Tue, Feb 26, 2013 at 2:40 PM, Carlos Alexandro Becker <caarlos0@gmail.com
> wrote:

> I've composed a stackoverflow question also..
>
>
>
> On Tue, Feb 26, 2013 at 2:23 PM, Carlos Alexandro Becker <
> caarlos0@gmail.com> wrote:
>
>> Any ideas?
>>
>>
>> On Tue, Feb 26, 2013 at 2:15 PM, Carlos Alexandro Becker <
>> caarlos0@gmail.com> wrote:
>>
>>> 4.0.0 and 1.0-beta
>>>
>>>
>>> On Tue, Feb 26, 2013 at 2:12 PM, Swati Swoboda <
>>> sswoboda@igloosoftware.com> wrote:
>>>
>>>> Hey Carlos,
>>>>
>>>> What version of Solr are you running and what version of openxml4j did
>>>> you import?
>>>>
>>>> Swati
>>>>
>>>> -----Original Message-----
>>>> From: Carlos Alexandro Becker [mailto:caarlos0@gmail.com]
>>>> Sent: Tuesday, February 26, 2013 12:04 PM
>>>> To: solr-user
>>>> Subject: Re: POI error while extracting docx document
>>>>
>>>> I've added the openxml4j jar to the project, still don't work. Which is
>>>> the correct version?
>>>>
>>>>
>>>> On Tue, Feb 26, 2013 at 11:23 AM, Carlos Alexandro Becker <
>>>> caarlos0@gmail.com> wrote:
>>>>
>>>> > I made solr extract the files content. That's ok, but some files (like
>>>> > .docx files) give me errors, while .pdf files index as expected.
>>>> >
>>>> > The error is:
>>>> >
>>>> >
>>>> > 14:20:29,714 ERROR [org.apache.solr.servlet.SolrDispatchFilter]
>>>> > (http--0.0.0.0-8080-4) null:java.lang.RuntimeException:
>>>> > java.lang.NoSuchMethodError:
>>>> > org.apache.poi.openxml4j.opc.PackagePart.getRelatedPart(Lorg/apache/po
>>>> > i/openxml4j/opc/PackageRelationship;)Lorg/apache/poi/openxml4j/opc/Pac
>>>> > kagePart;
>>>> >  at
>>>> > org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilte
>>>> > r.java:469)
>>>> > at
>>>> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter
>>>> > .java:297)
>>>> >  at
>>>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
>>>> > cationFilterChain.java:280)
>>>> > at
>>>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>>>> > lterChain.java:248)
>>>> >  at
>>>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>>>> > lve.java:275)
>>>> > at
>>>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>>>> > lve.java:161)
>>>> >  at
>>>> > org.jboss.as.web.security.SecurityContextAssociationValve.invoke(Secur
>>>> > ityContextAssociationValve.java:153)
>>>> > at
>>>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>>>> > va:155)
>>>> >  at
>>>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>>>> > va:102)
>>>> > at
>>>> > org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.jav
>>>> > a:397)
>>>> >  at
>>>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
>>>> > e.java:109)
>>>> > at
>>>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>>>> > :368)
>>>> >  at
>>>> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> > 877)
>>>> > at
>>>> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
>>>> > s(Http11Protocol.java:671)
>>>> >  at
>>>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930
>>>> > ) at java.lang.Thread.run(Thread.java:722)
>>>> > Caused by: java.lang.NoSuchMethodError:
>>>> > org.apache.poi.openxml4j.opc.PackagePart.getRelatedPart(Lorg/apache/po
>>>> > i/openxml4j/opc/PackageRelationship;)Lorg/apache/poi/openxml4j/opc/Pac
>>>> > kagePart;
>>>> > at
>>>> > org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.handleEm
>>>> > beddedParts(AbstractOOXMLExtractor.java:121)
>>>> >  at
>>>> > org.apache.tika.parser.microsoft.ooxml.AbstractOOXMLExtractor.getXHTML
>>>> > (AbstractOOXMLExtractor.java:107)
>>>> > at
>>>> > org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOX
>>>> > MLExtractorFactory.java:112)
>>>> >  at
>>>> > org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.j
>>>> > ava:82) at
>>>> > org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
>>>> >  at
>>>> > org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
>>>> > at
>>>> > org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:12
>>>> > 0)
>>>> >  at
>>>> > org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(Extra
>>>> > ctingDocumentLoader.java:219)
>>>> > at
>>>> > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(Con
>>>> > tentStreamHandlerBase.java:74)
>>>> >  at
>>>> > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandle
>>>> > rBase.java:129)
>>>> > at
>>>> > org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleR
>>>> > equest(RequestHandlers.java:240)  at
>>>> > org.apache.solr.core.SolrCore.execute(SolrCore.java:1699)
>>>> > at
>>>> > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.
>>>> > java:455)
>>>> >  at
>>>> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter
>>>> > .java:276)
>>>> > ... 14 more
>>>> >
>>>> >
>>>> >
>>>> > Looks like a dependency issue. What dependency should I add to fix
>>>> this?
>>>> >
>>>> >
>>>> > --
>>>> > Atenciosamente,
>>>> > *Carlos Alexandro Becker*
>>>> > http://caarlos0.github.com/about
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Atenciosamente,
>>>> *Carlos Alexandro Becker*
>>>> http://caarlos0.github.com/about
>>>>
>>>
>>>
>>>
>>> --
>>> Atenciosamente,
>>> *Carlos Alexandro Becker*
>>> http://caarlos0.github.com/about
>>>
>>
>>
>>
>> --
>> Atenciosamente,
>> *Carlos Alexandro Becker*
>> http://caarlos0.github.com/about
>>
>
>
>
> --
> Atenciosamente,
> *Carlos Alexandro Becker*
> http://caarlos0.github.com/about
>



-- 
Atenciosamente,
*Carlos Alexandro Becker*
http://caarlos0.github.com/about

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message