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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Christian Scheible,
  • 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)
    via by Christian Scheible,
  • 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)
    via by Ivan Masár,
  • 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)
    via by Ivan Masár,
  • Exceptions while reindexing
    via GitHub by vidiecan
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates