Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't see where you're trying to connect through a proxy in your code, you only provided the solr url while creating the <code>HttpSolrServer</code>. You can provide your own <code>HttpClient</code> instance while <a href="http://lucene.apache.org/solr/api-3_6_0/org/apache/solr/client/solrj/impl/HttpSolrServer.html#HttpSolrServer%28java.lang.String,%20org.apache.http.client.HttpClient%29" rel="nofollow noreferrer">creating</a> your <code>HttpSolrServer</code> instance. Your <code>HttpClient</code> instance can contain the information about the proxy. The needed code should be the following, which you can find in the <a href="http://hc.apache.org/httpcomponents-client-ga/examples.html" rel="nofollow noreferrer">http-components examples</a>:</p> <pre><code>DefaultHttpClient httpclient = new DefaultHttpClient(); HttpHost proxy = new HttpHost(proxyHost, proxyPort, "http"); httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); httpclient.getCredentialsProvider().setCredentials( AuthScope.ANY, new UsernamePasswordCredentials(username, password)); SolrServer solrServer = new HttpSolrServer(solrUrl, httpclient); </code></pre> <p>Looking more at your question, I don't think you need to connect using a proxy. You error is about https. Have a look at <a href="https://stackoverflow.com/questions/2308774/httpget-with-https-sslpeerunverifiedexception">this</a> other question and answers to see what you need to do. The version of httpclient you need to look at is 4.x.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload