lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Problems connecting to service!
Date Mon, 01 Sep 2008 17:40:02 GMT
Erik - is the issue the Solr URL?  The example you pointed to uses  
port 8080, but Solr's example configuration uses port 8983.

	Erik

On Sep 1, 2008, at 1:15 PM, Erik Holstad wrote:

> Hi!
> I'm trying to use solrj to work with solr and tried the example on
> http://e-mats.org/tag/solrj/
> but I get this error message:
>
> Sep 1, 2008 9:49:09 AM  
> org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing
> request: Connection refused
> Sep 1, 2008 9:49:09 AM  
> org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
> INFO: Retrying request
> Sep 1, 2008 9:49:09 AM  
> org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing
> request: Connection refused
> Sep 1, 2008 9:49:09 AM  
> org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
> INFO: Retrying request
> Sep 1, 2008 9:49:09 AM  
> org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing
> request: Connection refused
> Sep 1, 2008 9:49:09 AM  
> org.apache.commons.httpclient.HttpMethodDirector
> executeWithRetry
> INFO: Retrying request
> org.apache.solr.client.solrj.SolrServerException: Error executing  
> query
>    at
> org 
> .apache 
> .solr.client.solrj.request.QueryRequest.process(QueryRequest.java:96)
>    at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java: 
> 109)
>    at tester.<init>(tester.java:215)
>    at tester.main(tester.java:245)
> Caused by: org.apache.solr.client.solrj.SolrServerException:
> java.net.ConnectException: Connection refused
>    at
> org 
> .apache 
> .solr 
> .client 
> .solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java: 
> 391)
>    at
> org 
> .apache 
> .solr 
> .client 
> .solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java: 
> 183)
>    at
> org 
> .apache 
> .solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90)
>    ... 3 more
> Caused by: java.net.ConnectException: Connection refused
>    at java.net.PlainSocketImpl.socketConnect(Native Method)
>    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java: 
> 195)
>    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>    at java.net.Socket.connect(Socket.java:519)
>    at java.net.Socket.connect(Socket.java:469)
>    at java.net.Socket.<init>(Socket.java:366)
>    at java.net.Socket.<init>(Socket.java:240)
>    at
> org 
> .apache 
> .commons 
> .httpclient 
> .protocol 
> .DefaultProtocolSocketFactory 
> .createSocket(DefaultProtocolSocketFactory.java:80)
>    at
> org 
> .apache 
> .commons 
> .httpclient 
> .protocol 
> .DefaultProtocolSocketFactory 
> .createSocket(DefaultProtocolSocketFactory.java:122)
>    at
> org 
> .apache.commons.httpclient.HttpConnection.open(HttpConnection.java: 
> 707)
>    at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager 
> $HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java: 
> 1361)
>    at
> org 
> .apache 
> .commons 
> .httpclient 
> .HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>    at
> org 
> .apache 
> .commons 
> .httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java: 
> 171)
>    at
> org 
> .apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: 
> 397)
>    at
> org 
> .apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: 
> 323)
>    at
> org 
> .apache 
> .solr 
> .client 
> .solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java: 
> 335)
>    ... 5 more
>
>
> Seems like I can't connect to the server. When I'm using the web  
> interface
> everything works, so solr is up and running.
>
> Any thoughts?
>
> Regards Erik


Mime
View raw message