lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Augusto Camarotti" <>
Subject Re: Solr hanging when extracting a some broken .doc files
Date Thu, 19 Dec 2013 18:31:36 GMT
Hey Andrea! thanks for answering, this is the complete stack trace is following below. (the
other is just the same):
I'm going to try that modification of the logging level but i'm really considering to debug
tika and try to correct it myself.

03:38:23ERRORSolrCoreorg.apache.solr.common.SolrException: org.apache.tika.exception.TikaException:
Unexpected RuntimeException from
org.apache.solr.common.SolrException: org.apache.tika.exception.TikaException: Unexpected
RuntimeException from
 at org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(
 at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(
 at org.apache.solr.handler.RequestHandlerBase.handleRequest(
 at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(
 at org.apache.solr.core.SolrCore.execute(
 at org.apache.solr.servlet.SolrDispatchFilter.execute(
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
 at org.apache.solr.servlet.SolrDispatchFilter.doFilter(
 at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
 at org.eclipse.jetty.servlet.ServletHandler.doScope(
 at org.eclipse.jetty.server.session.SessionHandler.doScope(
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
 at org.eclipse.jetty.server.handler.HandlerCollection.handle(
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
 at org.eclipse.jetty.server.Server.handle(
 at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
 at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(
 at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(
 at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(
 at org.eclipse.jetty.http.HttpParser.parseNext(
 at org.eclipse.jetty.http.HttpParser.parseAvailable(
 at org.eclipse.jetty.server.BlockingHttpConnection.handle(
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
 at org.eclipse.jetty.util.thread.QueuedThreadPool$
 at Source)
Caused by: org.apache.tika.exception.TikaException: Unexpected RuntimeException from
 at org.apache.tika.parser.CompositeParser.parse(
 at org.apache.tika.parser.CompositeParser.parse(
 at org.apache.tika.parser.AutoDetectParser.parse(
 at org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(
 ... 32 more
Caused by: java.lang.IllegalStateException: Told we're for characters 122 -> 978, but actually
covers 855 characters!
 at org.apache.poi.hwpf.model.TextPiece.<init>(
 at org.apache.poi.hwpf.model.TextPieceTable.<init>(
 at org.apache.poi.hwpf.model.ComplexFileTable.<init>(
 at org.apache.poi.hwpf.HWPFOldDocument.<init>(
 at org.apache.tika.parser.CompositeParser.parse(
 ... 35 more

>>> Andrea Gazzarini <> 17/12/2013 16:43 >>>
Hi Augusto,
I don't believe the mailing list allows attachments. Could you please post
the complete stacktrace? In addition, set the logging level of tika classes
to FINEST in solr console, maybe can be helpful

On 17 Dec 2013 16:30, "Augusto Camarotti" <> wrote:

>  Hi guys,
>    I'm having a problem with solr when trying to index some broken .doc
> files.
>    I have set up a test case using Solr to index all the files the users
> save on the shared directorys of the company that i work for and Solr is
> hanging when trying to index this file in particular(the one i'm attaching
> on this e-mail). There are some others broken .doc files that Solr index by
> the name without a problem, even logging some Tika erros during the
> process, but when it reaches this file in particular, it hangs and i have
> to cancel the upload.
>    I cannot guarantee the directorys will never hold a broken .doc file,
> or a broken file with some other extension, so i guess solr could just
> return a failing message, or something like that.
>    These are the logging messages solr is recording:
>   03:38:23 ERROR SolrCore org.apache.solr.common.SolrException:
> org.apache.tika.exception.TikaException: Unexpected RuntimeException from
> 03:38:25 ERROR
> SolrDispatchFilter null:org.apache.solr.common.SolrException:
> org.apache.tika.exception.TikaException: Unexpected RuntimeException from
> So, how do I prevent solr from hanging when trying to index broken files?
> Regards,
> Augusto Camarotti

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