Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6
-
Fix Version/s: None
-
Component/s: Launcher
-
Labels:None
-
Environment:OS X 10.6.6 (Darwin 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386 i386)
-
Number of attachments :
Description
When you try to start the nailgun server (using jruby 1.6.0) it dies with a java.net.UnknownHostException exception if you have JRUBY_OPTS="--1.9" set and are not root:
$ jruby --ng-server
Exception in thread "main" java.net.UnknownHostException: --1.9
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
at java.net.InetAddress.getAllByName(InetAddress.java:1084)
at java.net.InetAddress.getAllByName(InetAddress.java:1020)
at java.net.InetAddress.getByName(InetAddress.java:970)
at com.martiansoftware.nailgun.NGServer.main(Unknown Source
Running the same as root (via sudo) seems to work fine.
Here's the jruby version info:
$ jruby -v
jruby 1.6.0 (ruby 1.9.2 patchlevel 136) (2011-03-15 f3b6154) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
Issue Links
- is duplicated by
-
JRUBY-5923
Can't start a NailGun server when running JRuby in 1.9 mode
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Priority | Major [ 3 ] | Minor [ 4 ] |
| Component/s | Launcher [ 14354 ] | |
| Component/s | Application Error [ 12271 ] |
| Link |
This issue is duplicated by |
Changing JRUBY_OPTS="" works fine too. So the issue seems to be localised to using v1.9 compatibility mode in jruby 1.6.0.