SAP Knowledge Base Article - Preview

3700033 - SolrException: Error CREATEing SolrCore 'master_xxx_Product_xxx_shard1_replica_n1': Unable to create core

Symptom

Solr indexing failed, and the below exception can be found in the kibana logs:

ERROR (qtpxxx-solr-0.solr.default.svc.cluster.local-123) [c: s: r: x: t:solr-0.solr.default.svc.cluster.local-123] o.a.s.h.RequestHandlerBase Client exception => org.apache.solr.common.SolrException: Error CREATEing SolrCore 'master_xxx_Product_xxx_shard1_replica_n1': Unable to create core [master_best_Product_flop_shard1_replica_n1] Caused by: The string "--" is not permitted within comments. at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1662)
......
Caused by: org.apache.solr.common.SolrException: org.xml.sax.SAXParseException; systemId: solrres:/schema.xml; lineNumber: 883; columnNumber: 14; The string "--" is not permitted within comments.
    at org.apache.solr.core.XmlConfigFile.<init>(XmlConfigFile.java:142) ~[?:?]
    at org.apache.solr.core.XmlConfigFile.<init>(XmlConfigFile.java:77) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.getParsedSchema(IndexSchemaFactory.java:200) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.loadConfig(IndexSchemaFactory.java:142) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.lambda$getConfigResource$1(IndexSchemaFactory.java:134) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.lambda$getFromCache$5(IndexSchemaFactory.java:182) ~[?:?]
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.getFromCache(IndexSchemaFactory.java:182) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.lambda$getConfigResource$2(IndexSchemaFactory.java:125) ~[?:?]
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:513) ~[?:?]
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:193) ~[?:?]
    at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:109) ~[?:?]
    at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:370) ~[?:?]
    at org.apache.solr.core.ConfigSetService.lambda$loadConfigSet$0(ConfigSetService.java:281) ~[?:?]
    at org.apache.solr.core.ConfigSet.<init>(ConfigSet.java:49) ~[?:?]
    at org.apache.solr.core.ConfigSetService.loadConfigSet(ConfigSetService.java:277) ~[?:?]
    at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1744) ~[?:?]
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1620) ~[?:?]
    ... 62 more


Read more...

Environment

  • SAP Commerce Cloud
  • SAP Commerce

Product

SAP Commerce Cloud all versions ; SAP Commerce all versions

Keywords

Underlying, collection, xml, format, string, --, schema, fieldType, spellcheck, search , KBA , CEC-SCC-COM-SRC-SER , Search and Navigation , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.