[ 
https://issues.apache.org/jira/browse/SOLR-14516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17135797#comment-17135797
 ] 

Ishan Chattopadhyaya commented on SOLR-14516:
---------------------------------------------

Here is the way to reproduce it:
{code}
bin/solr -c
curl 
"localhost:8983/solr/admin/collections?action=CREATE&name=coll1&numShards=1"
curl -X POST -H 'Content-type:application/json' --data-binary 
'{"add-field":{"name":"myfield","type":"string","stored":false,"docValues":true 
}}' http://localhost:8983/solr/coll1/schema
curl -X POST -H 'Content-type:application/json' --data-binary 
'[{"id":1,"myfield":"abc"}]' http://localhost:8983/solr/coll1/update
curl "http://localhost:8983/solr/coll1/get?id=1";
{code}

If the last step is done quickly enough (before the autocommit kicks in), then 
we have an NPE (which you've suppressed here in this previous commit).

> NPE during Realtime GET
> -----------------------
>
>                 Key: SOLR-14516
>                 URL: https://issues.apache.org/jira/browse/SOLR-14516
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Major
>             Fix For: 8.6
>
>
> The exact reason is unknown. But the following is the stacktrace
>  
>  o.a.s.s.HttpSolrCall null:java.lang.NullPointerException\n\tat 
> org.apache.solr.common.util.JsonTextWriter.writeStr(JsonTextWriter.java:83)\n\tat
>  org.apache.solr.schema.StrField.write(StrField.java:101)\n\tat 
> org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:124)\n\tat
>  
> org.apache.solr.response.JSONWriter.writeSolrDocument(JSONWriter.java:106)\n\tat
>  
> org.apache.solr.response.TextResponseWriter.writeSolrDocumentList(TextResponseWriter.java:170)\n\tat
>  
> org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:147)\n\tat
>  
> org.apache.solr.common.util.JsonTextWriter.writeNamedListAsMapWithDups(JsonTextWriter.java:386)\n\tat
>  
> org.apache.solr.common.util.JsonTextWriter.writeNamedList(JsonTextWriter.java:292)\n\tat



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to