Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.4
-
Fix Version/s: JRuby 1.6.5
-
Component/s: Standard Library
-
Environment:HideWindows 7 64-bit SP1
x86 (32-it)
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)
Also, c.f. -- WORK-ing on:
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
... (Same PC)ShowWindows 7 64-bit SP1 x86 (32-it) Java(TM) SE Runtime Environment (build 1.7.0_01-b08) Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing) Also, c.f. -- WORK-ing on: java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing) ... (Same PC)
-
Number of attachments :
Description
Simply, this is a new PC. Windows 7 and Java 6 and Java 7 (interchangeable)
JRuby fails to connect with the Java 7 and works with Java 6!
- Example: ruby gems install rake ...
1/. (Java 7 – Fails)
z:...> jruby -S gem install rake
ERROR: Could not find a valid gem 'rake' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Connection refused - Connection refused (http://rubygems.org/latest_specs.4.8.gz)
2/. (Java 6 – Work)
z:...> jruby -S gem install rake Fetching: rake-0.9.2.2.gem (100%) Successfully installed rake-0.9.2.2 1 gem installed
I've only tested this with the two 32-bit Java versions. It bothers me extremely that the same JRUBY version fails with one Java (minor) version upgrade. Recalling that Java 7 is only, Java 1.7.1
I wouldn't call Java 7 a minor upgrade, but if the problem is real, then this merits serious investigation regardless.
However, my custom-built Java 7 (on Mac OS X) has no problem connecting to rubygems.org. I wonder if Java 7 on Windows has a problem.