org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Exception writing document id 123456789/5 to the index; possible analysis error.

Sakai JIRA | Christian Scheible | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Lucene changed the behaviour how it handles a immense term exception (https://issues.apache.org/jira/browse/LUCENE-5710). This leads to the termination of the indexing for the oai interface (like dspace oai index) if there is a metadata field with a realy long text value (exceeding 32766 Bytes) $ /dspace/bin/dspace oai import -c OAI 2.0 manager action started Clearing index Index cleared Using full import. Full import org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Exception writing document id 123456789/5 to the index; possible analysis error. at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102) at org.dspace.xoai.app.XOAI.index(XOAI.java:211) at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:198) at org.dspace.xoai.app.XOAI.index(XOAI.java:131) at org.dspace.xoai.app.XOAI.main(XOAI.java:405) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

    Sakai JIRA | 2 years ago | Christian Scheible
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Exception writing document id 123456789/5 to the index; possible analysis error.
  2. 0

    Lucene changed the behaviour how it handles a immense term exception (https://issues.apache.org/jira/browse/LUCENE-5710). This leads to the termination of the indexing for the oai interface (like dspace oai index) if there is a metadata field with a realy long text value (exceeding 32766 Bytes) $ /dspace/bin/dspace oai import -c OAI 2.0 manager action started Clearing index Index cleared Using full import. Full import org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Exception writing document id 123456789/5 to the index; possible analysis error. at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102) at org.dspace.xoai.app.XOAI.index(XOAI.java:211) at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:198) at org.dspace.xoai.app.XOAI.index(XOAI.java:131) at org.dspace.xoai.app.XOAI.main(XOAI.java:405) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

    Sakai JIRA | 2 years ago | Christian Scheible
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Exception writing document id 123456789/5 to the index; possible analysis error.
  3. 0

    This happened during import from CSV (via Batch Metadata Editor), but I imagine other import methods would be affected, too. Metadata fields in some of the records started with "[" (e.g. "[1936"). For all these records, the following error was thrown and no Solr document was created for the item, which resulted in wrong item counts in the collection / community hierarchy. The items can be displayed by typing in the URL, but cannot be found because they're missing from Solr. 2015-08-13 16:10:59,353 ERROR org.dspace.discovery.SolrServiceImpl @ Error while writing item to discovery index: 123456789/26564 message:Error while creating field 'bata.citation.year{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,multiValued,sortMissingLast}' from value '[1936' org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error while creating field 'bata.citation.year{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,multiValued,sortMissingLast}' from value '[1936' at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102) at org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:742) at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1419) at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:225) at org.dspace.discovery.IndexEventConsumer.end(IndexEventConsumer.java:170) at org.dspace.event.BasicDispatcher.dispatch(BasicDispatcher.java:147) at org.dspace.core.Context.commit(Context.java:390) at org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1409) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

    Sakai JIRA | 2 years ago | Ivan Masár
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error while creating field 'bata.citation.year{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,multiValued,sortMissingLast}' from value '[1936'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This happened during import from CSV (via Batch Metadata Editor), but I imagine other import methods would be affected, too. Metadata fields in some of the records started with "[" (e.g. "[1936"). For all these records, the following error was thrown and no Solr document was created for the item, which resulted in wrong item counts in the collection / community hierarchy. The items can be displayed by typing in the URL, but cannot be found because they're missing from Solr. 2015-08-13 16:10:59,353 ERROR org.dspace.discovery.SolrServiceImpl @ Error while writing item to discovery index: 123456789/26564 message:Error while creating field 'bata.citation.year{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,multiValued,sortMissingLast}' from value '[1936' org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error while creating field 'bata.citation.year{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,multiValued,sortMissingLast}' from value '[1936' at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102) at org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:742) at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1419) at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:225) at org.dspace.discovery.IndexEventConsumer.end(IndexEventConsumer.java:170) at org.dspace.event.BasicDispatcher.dispatch(BasicDispatcher.java:147) at org.dspace.core.Context.commit(Context.java:390) at org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1409) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

    Sakai JIRA | 2 years ago | Ivan Masár
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error while creating field 'bata.citation.year{type=sint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,multiValued,sortMissingLast}' from value '[1936'
  6. 0

    Reindexing exception should be emailed

    GitHub | 2 years ago | vidiecan
    org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Unexpected EOF in attribute value 2185 at [row,col {unknown-source}]: [81,36]

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException

      Exception writing document id 123456789/5 to the index; possible analysis error.

      at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod()
    2. Apache Solr Solrj
      SolrServer.add
      1. org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552)
      2. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
      3. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
      4. org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
      5. org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
      6. org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)
      6 frames
    3. org.dspace.xoai
      XOAI.main
      1. org.dspace.xoai.app.XOAI.index(XOAI.java:211)
      2. org.dspace.xoai.app.XOAI.indexAll(XOAI.java:198)
      3. org.dspace.xoai.app.XOAI.index(XOAI.java:131)
      4. org.dspace.xoai.app.XOAI.main(XOAI.java:405)
      4 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
      2 frames