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

Ursula Kellmann commented on SOLR-4451:
---------------------------------------

Hello,

After upgrading from 4.1 to 4.2 our api to create a HttpSolrServer no longer 
worked.  Our unit tests using the embedded solr server did not catch this 
issue.  We did not detect the issue until runtime with deployment to jboss 7.  
The errors were 
java.io.FileNotFoundException: \local\java\jre\lib\security\cacerts (The system 
cannot find the path specified)
Failure initializing default system SSL context

In our environment we do not require security to access the solr server.   To 
get around this error, we created the http client and set the connection 
manager on it and passing it to the HttpSolrServer constructor.
 i.e.
        PoolingClientConnectionManager connManager = new 
PoolingClientConnectionManager();
        DefaultHttpClient client = new DefaultHttpClient(connManager);

Can you please advise if this is the best way to get around this?   Also, is 
there a way  that a unit test could have found this issue? 

Thank you in advance for for any help you can provide, and we think solr is 
awesome!

Regards,
Ursula Kellmann

                
> Upgrade to httpclient 4.2.x and take advantage of SystemDefaultHttpClient
> -------------------------------------------------------------------------
>
>                 Key: SOLR-4451
>                 URL: https://issues.apache.org/jira/browse/SOLR-4451
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 4.2, 5.0
>
>         Attachments: SOLR-4451.patch
>
>
> HttpComponent is up to version 4.2, and included in 4.2 is a new subclass of 
> DefaultHttpClient named SystemDefaultHttpClient, which automatically 
> configures itself using the "standard" java system properties...
> http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/SystemDefaultHttpClient.html
> ...i think we should upgrade and start using this new class in place of 
> DefaultHttpClient, so that SolrJ clients (and implicitly SolrCloud) can 
> automaticly leverage system properties users may expect to work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to