You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org> on 2017/12/21 00:16:19 UTC
[jira] [Updated] (SOLR-11620) Occasional NullPointerException in
CloudSolrClient
[ https://issues.apache.org/jira/browse/SOLR-11620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomás Fernández Löbbe updated SOLR-11620:
-----------------------------------------
Description:
When sending document updates to Solr, we occasionally see the following error:
{noformat}
java.lang.NullPointerException
at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:1182)
at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:1073)
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:138)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:152)
{noformat}
Looking at the code, there is a lack of null check on requestedCollections around the for loop
for (DocCollection ext : requestedCollections)
which causes the error. Wrapping this loop with if(requestedCollections != null) would solve the problem.
was:
When sending document updates to Solr, we occasionally see the following error:
java.lang.NullPointerException
at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:1182)
at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:1073)
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:138)
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:152)
Looking at the code, there is a lack of null check on requestedCollections around the for loop
for (DocCollection ext : requestedCollections)
which causes the error. Wrapping this loop with if(requestedCollections != null) would solve the problem.
> Occasional NullPointerException in CloudSolrClient
> ---------------------------------------------------
>
> Key: SOLR-11620
> URL: https://issues.apache.org/jira/browse/SOLR-11620
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrJ
> Affects Versions: 6.6.1
> Reporter: Rob Trickey
> Priority: Minor
>
> When sending document updates to Solr, we occasionally see the following error:
> {noformat}
> java.lang.NullPointerException
> at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:1182)
> at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:1073)
> at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:160)
> at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:173)
> at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:138)
> at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:152)
> {noformat}
> Looking at the code, there is a lack of null check on requestedCollections around the for loop
> for (DocCollection ext : requestedCollections)
> which causes the error. Wrapping this loop with if(requestedCollections != null) would solve the problem.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org