lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Oliver Glauner <>
Subject RuntimeException during indexing: how to write document id to log?
Date Sun, 09 Sep 2012 12:04:18 GMT

We use Solr 3.1 and Jetty. I enabled logging in Jetty as described here:

We are indexing millions of documents and for some fulltexts we get exceptions and therefore
logs like this one:










  <message>java.lang.RuntimeException: [was class] Invalid
UTF-8 character 0xd835(a surrogate character)  at c

har #1144, byte #127)

        at com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(




        at org.apache.solr.handler.XMLLoader.readDoc(

        at org.apache.solr.handler.XMLLoader.processUpdate(

        at org.apache.solr.handler.XMLLoader.load(

        at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(

        at org.apache.solr.handler.RequestHandlerBase.handleRequest(

        at org.apache.solr.core.SolrCore.execute(

        at org.apache.solr.servlet.SolrDispatchFilter.execute(

        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(

        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(

        at org.mortbay.jetty.servlet.ServletHandler.handle(


        at org.mortbay.jetty.servlet.SessionHandler.handle(

        at org.mortbay.jetty.handler.ContextHandler.handle(

        at org.mortbay.jetty.webapp.WebAppContext.handle(

        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(

        at org.mortbay.jetty.handler.HandlerCollection.handle(

        at org.mortbay.jetty.handler.HandlerWrapper.handle(

        at org.mortbay.jetty.Server.handle(




It would be great to also log the sent document id so that we can reindex the respective document.

How can we write the id to the log?

Thank you!

Best regards

Patrick Glauner

Patrick GLAUNER []

Information Technology Department
CH-1211 Geneva 23

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