简体   繁体   English

在Mac OS X Lion上进行Java更新后,Solr连接被拒绝错误

[英]Solr connection refused error after java update on Mac OS X Lion

I recently updated Java for Mac OS X 10.7-Update 1. After that I recognized that in my local development application under Rails 3.0.10 with sunspot/solr the solr-server starts correctly 我最近更新了Mac OS X 10.7-Update 1的Java。此后,我认识到在我的本地开发应用程序中,带有sunspot / solr的Rails 3.0.10下,solr-server可以正确启动

0:03.80 /usr/bin/java -Dsolr.data.dir=/var/folders/j0/h6j1w2px233bb_g2461l8pnr0000gn/T -Dsolr.solr.home=/Users/XXXXXXX/.rvm/gems/ruby-1.9.2-p180/bundler/gems/sunspot-a32d14da2650/sunspot_solr/solr/solr -jar start.jar

But if I send a fully functional search request I get a connection refused error: 但是,如果我发送功能齐全的搜索请求,则会出现连接拒绝错误:

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

One of my collegues recently updated its installation of OS X Snow Leopard with the Java Update for OS X 10.6-Update 6 and is getting the same error, so we determined the Java Update as a possible reason, since solr is Java based. 我的一位同事最近用OS X 10.6-Update 6的Java更新更新了OS X Snow Leopard的安装,并收到了相同的错误,因此我们将Java Update确定为可能的原因,因为solr是基于Java的。

I am using on Rails 3.0.10 following gems: 我在Rails 3.0.10上使用以下宝石:

gem 'sunspot_solr', :git => 'https://github.com/sunspot/sunspot'
gem 'sunspot_rails', :git => 'https://github.com/sunspot/sunspot.git'

Can someone help me with this problem or confirm its appearence after updating Java on OS X? 在OS X上更新Java后,有人可以帮助我解决此问题或确认其出现吗?

Thanks a lot! 非常感谢!

We could fix it with the help of one of the contributors from sunspot rails and returned to a release candidate gem verioned before the last update. 我们可以在黑子轨道的贡献者之一的帮助下修复它,并返回到上次更新之前已发行版本的候选gem。

gem 'sunspot_rails', :git => 'https://github.com/sunspot/sunspot.git', :ref => '79175ea'
gem 'sunspot_solr', :git => 'https://github.com/sunspot/sunspot', :ref => '79175ea'

This fixed the issue for us be we are pretty sure that it was caused by the Mac OS Java update. 这可以为我们解决问题,因为我们可以确定这是由Mac OS Java更新引起的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Mac OS X Lion Ant Eclipse JBPM Java错误 - Mac OS X Lion Ant Eclipse JBPM Java Error 在 Mac OS X Lion 中初始化 Java VM 时出错 - Error initializing Java VM in Mac OS X Lion Java严重更新后,在OS X Mountain Lion上安装错误:INSTALL_PARSE_FAILED_NO_CERTIFICATES - Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES on OS X Mountain Lion after Java Critical Update Mac OS X Lion上的Java 1.6.0_26 - Java 1.6.0_26 on Mac OS X Lion Mac OS X(Mountain Lion)-Eclipse应用程序使用Java 6 - Mac OS X (Mountain Lion) - Eclipse Application Uses Java 6 Java 6 Mac OS X Lion上奇怪的并发行为 - Strange concurrency behaviour on Java 6 Mac OS X Lion 尝试在Mac OS X上通过GelenoDriver与Selenium一起使用firefoxprofile时出现“未知错误”,“消息”:“连接被拒绝”,“堆栈跟踪” - “unknown error”,“message”:“connection refused”,“stacktrace” while trying to use firefoxprofile through GeckoDriver with Selenium on Mac OS X Mac OS Lion上带有PowerPC JavaApplicationStub的Java应用程序 - Java application with PowerPC JavaApplicationStub on Mac OS Lion 更新到Apple Java for Mac OS X 10.6 update 6后,sqljdbc4挂起 - sqljdbc4 hangs after update to Apple Java for Mac OS X 10.6 update 6 FullScreen Swing组件无法在Mac OS X Mountain Lion上的Java 7上接收键盘输入 - FullScreen Swing Components Fail to Receive Keyboard Input on Java 7 on Mac OS X Mountain Lion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM