sunspot/sunspot — Issue #127: Errno::ECONNREFUSED (Connection refused - connect(2)) after OS X Java update
Author: cseydel
Created: 2011-11-16 14:35:25+00:00
State: open

Hi,
my colleague on OSX Snow Leopard and me on OSX Lion recently updated our system to the newest Java update. Since this we receive in development mode a connection refused error.

```ruby
SOLR Request (1.4ms) [ path=# parameters={data: fq=type%3AJobOffer&fq=started_at_d%3A%5B%2A+TO+2011%5C-11%5C-16T13%5C%3A40%5C%3A07Z%5D&fq=ended_at_d%3A%5B2011%5C-11%5C-16T13%5C%3A40%5C%3A07Z+TO+%2A%5D&sort=ranked_at_d+desc&start=0&rows=20&q=%2A%3A%2A, method: post, params: {:wt=>:ruby}, query: wt=ruby, headers: {"Content-Type"=>"application/x-www-form-urlencoded"}, path: select, uri: http://localhost:8982/solr/select?wt=ruby} ]
Completed 500 Internal Server Error in 23ms

Errno::ECONNREFUSED (Connection refused - connect(2)):
```

The server seems to work correctly
```
4446 ?? 0:03.80 /usr/bin/java -Dsolr.data.dir=/var/folders/j0/h6j1w2px233bb_g2461l8pnr0000gn/T -Dsolr.solr.home=/Users/XXXXX/.rvm/gems/ruby-1.9.2-p180/bundler/gems/sunspot-a32d14da2650/sunspot_solr/solr/solr -jar start.jar
```

Development configuration:

Gemfile:

```
gem 'rails', '3.0.10'
gem 'pg'
gem 'sunspot_rails', :git => 'https://github.com/sunspot/sunspot.git'
[...]

group :development, :test do
gem 'sunspot_solr', :git => 'https://github.com/sunspot/sunspot'
[...]
end
```

Since my colleague and me are both receiving this error after both updating Java on OS X we believe that this may be a possible reason.

Can someone confirm this or give us a hint to repair?