You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2015/06/09 17:57:01 UTC
[jira] [Resolved] (SOLR-7574) NullPointerException in
RequestUtil.mergeJSON
[ https://issues.apache.org/jira/browse/SOLR-7574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved SOLR-7574.
--------------------------------
Resolution: Fixed
Fix Version/s: 5.2.1
> NullPointerException in RequestUtil.mergeJSON
> ---------------------------------------------
>
> Key: SOLR-7574
> URL: https://issues.apache.org/jira/browse/SOLR-7574
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.1
> Reporter: Alexey Serba
> Assignee: Yonik Seeley
> Priority: Trivial
> Fix For: 5.2.1
>
> Attachments: SOLR-7574.patch
>
>
> {noformat:title="Steps to reproduce"}
> bin/solr start
> bin/solr create_core -c test
> curl -H 'Content-type: application/json' 'http://localhost:8983/solr/test/select?q=*:*&rows=10&wt=json'
> {noformat}
> {noformat:title="Exception"}
> ERROR - 2015-05-19 21:02:47.144; [ test] org.apache.solr.common.SolrException; null:java.lang.NullPointerException
> at org.apache.solr.request.json.ObjectUtil$ConflictHandler.mergeMap(ObjectUtil.java:60)
> at org.apache.solr.request.json.ObjectUtil.mergeObjects(ObjectUtil.java:114)
> at org.apache.solr.request.json.RequestUtil.mergeJSON(RequestUtil.java:259)
> at org.apache.solr.request.json.RequestUtil.processParams(RequestUtil.java:176)
> at org.apache.solr.util.SolrPluginUtils.setDefaults(SolrPluginUtils.java:166)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:140)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1984)
> ...
> {noformat}
> While there's no really any point in specifying content-type header with no content stream, but one can forget to remove this when trying different commands with curl / script.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org