Skip to Content
1
Oct 17, 2019 at 06:55 AM

issues with solr at first start

595 Views

Hello all,

I am using SAP CC 1905.4 and I have problems with my Solr at start (backoffice indexing)

After First start I get this error message below, but if I break CC with CTRL+C and restart it, then everything works as expected.

ERROR [solr indexer thread] [DefaultIndexerWorker] [Indexer worker 0 (FULL index operation on Solr Config for Backoffice/Product_backoffice_product)] failed to process index items due to Failed to index item with PK 8796093054977: Failed to resolve values for item with PK: 8796093054977, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796093054977: Failed to resolve values for item with PK: 8796093054977, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:304) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:207) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.executeIndexerOperation(DefaultIndexerBatchStrategy.java:245) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.execute(DefaultIndexerBatchStrategy.java:210) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.doRun(DefaultIndexerWorker.java:195) [solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.run(DefaultIndexerWorker.java:151) [solrfacetsearchserver.jar:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException: Failed to resolve values for item with PK: 8796093054977, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:662) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:498) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

Caused by: java.lang.NullPointerException

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addBackofficeSpecificFields(BackofficeValueResolver.java:57) ~[backofficesolrsearchserver.jar:?]

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addFieldValues(BackofficeValueResolver.java:46) ~[backofficesolrsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.doResolve(AbstractValueResolver.java:134) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.resolve(AbstractValueResolver.java:89) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:486) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

ERROR [solr indexer thread] [DefaultIndexerWorker] [Indexer worker 2 (FULL index operation on Solr Config for Backoffice/Product_backoffice_product)] failed to process index items due to Failed to index item with PK 8796119269377: Failed to resolve values for item with PK: 8796119269377, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796119269377: Failed to resolve values for item with PK: 8796119269377, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:304) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:207) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.executeIndexerOperation(DefaultIndexerBatchStrategy.java:245) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.execute(DefaultIndexerBatchStrategy.java:210) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.doRun(DefaultIndexerWorker.java:195) [solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.run(DefaultIndexerWorker.java:151) [solrfacetsearchserver.jar:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException: Failed to resolve values for item with PK: 8796119269377, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:662) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:498) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

Caused by: java.lang.NullPointerException

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addBackofficeSpecificFields(BackofficeValueResolver.java:57) ~[backofficesolrsearchserver.jar:?]

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addFieldValues(BackofficeValueResolver.java:46) ~[backofficesolrsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.doResolve(AbstractValueResolver.java:134) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.resolve(AbstractValueResolver.java:89) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:486) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

ERROR [solr indexer thread] [DefaultIndexerWorker] [Indexer worker 1 (FULL index operation on Solr Config for Backoffice/Product_backoffice_product)] failed to process index items due to Failed to index item with PK 8796106162177: Failed to resolve values for item with PK: 8796106162177, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796106162177: Failed to resolve values for item with PK: 8796106162177, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:304) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:207) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.executeIndexerOperation(DefaultIndexerBatchStrategy.java:245) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.execute(DefaultIndexerBatchStrategy.java:210) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.doRun(DefaultIndexerWorker.java:195) [solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.run(DefaultIndexerWorker.java:151) [solrfacetsearchserver.jar:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException: Failed to resolve values for item with PK: 8796106162177, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:662) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:498) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

Caused by: java.lang.NullPointerException

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addBackofficeSpecificFields(BackofficeValueResolver.java:57) ~[backofficesolrsearchserver.jar:?]

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addFieldValues(BackofficeValueResolver.java:46) ~[backofficesolrsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.doResolve(AbstractValueResolver.java:134) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.resolve(AbstractValueResolver.java:89) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:486) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

ERROR [solr indexer thread] [DefaultIndexerWorker] [Indexer worker 3 (FULL index operation on Solr Config for Backoffice/Product_backoffice_product)] failed to process index items due to Failed to index item with PK 8796132376577: Failed to resolve values for item with PK: 8796132376577, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796132376577: Failed to resolve values for item with PK: 8796132376577, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:304) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:207) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.executeIndexerOperation(DefaultIndexerBatchStrategy.java:245) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerBatchStrategy.execute(DefaultIndexerBatchStrategy.java:210) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.doRun(DefaultIndexerWorker.java:195) [solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker.run(DefaultIndexerWorker.java:151) [solrfacetsearchserver.jar:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException: Failed to resolve values for item with PK: 8796132376577, by resolver: backofficeValueResolver, for properties: [_backofficeLabel, name], reason: null

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.handleError(DefaultIndexer.java:662) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:498) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

Caused by: java.lang.NullPointerException

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addBackofficeSpecificFields(BackofficeValueResolver.java:57) ~[backofficesolrsearchserver.jar:?]

	at com.hybris.backoffice.solrsearch.resolvers.BackofficeValueResolver.addFieldValues(BackofficeValueResolver.java:46) ~[backofficesolrsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.doResolve(AbstractValueResolver.java:134) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.resolve(AbstractValueResolver.java:89) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFieldsForNewApi(DefaultIndexer.java:486) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.addIndexedPropertyFields(DefaultIndexer.java:441) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.createInputDocument(DefaultIndexer.java:334) ~[solrfacetsearchserver.jar:?]

	at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexer.indexItems(DefaultIndexer.java:201) ~[solrfacetsearchserver.jar:?]

	... 11 more

it looks like it fails loading _backofficeLabel, but I have this line in my productSolr.impex:

INSERT_UPDATE SolrIndexedProperty; name[unique = true]; $solrIndexedType; type(code); localized[default = false]; currency[default = false]; multiValue[default = false]; fieldValueProvider      ; ftsQuery; ftsQueryBoost; ftsPhraseQuery; ftsPhraseQueryBoost; ftsWildcardQuery; $ftsWildcardQueryType; includeInResponse; useForSpellChecking; useForAutocomplete;
                                 ; _backofficeLabel   ;                 ; text      ; true                      ;                          ;                            ; backofficeValueResolver ; true    ; 1.0          ; true          ; 5.0                ; true            ; POSTFIX              ; false            ; true               ; true              ;<br>

Any ideas?

Cheers Serdar