You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2018/04/10 00:01:00 UTC

[jira] [Comment Edited] (SOLR-12206) SolrCLI can swallow all information about an exception from a request to Solr

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

Shawn Heisey edited comment on SOLR-12206 at 4/10/18 12:00 AM:
---------------------------------------------------------------

The user in this situation had enabled SSL on their Solr instance.  My best guess about what happened is that HttpClient was unable to validate the certificate sent by the server.

 


was (Author: elyograg):
The user in this situation had enabled SSL on their Solr instance.  My best guess about what happened is that SolrCLI was unable to validate the certificate sent by the server.

 

> 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
>            Priority: Minor
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org