Shawn Heisey created SOLR-12206:
-----------------------------------
Summary: SolrCLI can swallow all information about an exception
from a request to Solr
Key: SOLR-12206
URL: https://issues.apache.org/jira/browse/SOLR-12206
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Components: scripts and tools
Affects Versions: 7.3
Reporter: Shawn Heisey
Assignee: Shawn Heisey
User got an NPE when trying to create a core, no useful information:
{code}
$ /usr/local/solr/bin/solr create -V -c new_core
WARNING: Using _default configset with data driven schema functionality.
NOT RECOMMENDED for production use.
To turn off: bin/solr config -c new_core -p 8983 -property
update.autoCreateFields -value false
Exception in thread "main" java.lang.NullPointerException
at org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:731)
at org.apache.solr.util.SolrCLI.getJson(SolrCLI.java:642)
at org.apache.solr.util.SolrCLI$CreateTool.runImpl(SolrCLI.java:1773)
at org.apache.solr.util.SolrCLI$ToolBase.runTool(SolrCLI.java:176)
at org.apache.solr.util.SolrCLI.main(SolrCLI.java:282)
{code}
Looking at the code, this happened because SolrCLI got a
ClientProtocolException in its call to HttpClient, but that exception did NOT
have a message string attached, so when the code in the catch block tried to
look at the message, it threw NPE.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]