Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.1
-
Fix Version/s: JRuby 1.6.3
-
Component/s: Standard Library
-
Labels:None
-
Number of attachments :
Description
JRuby 1.6.1 broke running 'rake' from the copy embedded in the complete jar.
/usr/bin/java -classpath /home/proyal/.m2/repository/org/jruby/jruby-complete/1.6.1/jruby-complete-1.6.1.jar org.jruby.Main -S rake -T
FilterInputStream.java:116:in `read': java.lang.NullPointerException
from FilterInputStream.java:90:in `read'
from LoadServiceResourceInputStream.java:34:in `bufferEntireStream'
from LoadServiceResourceInputStream.java:18:in `<init>'
from LoadServiceResource.java:80:in `getInputStream'
from ExternalScript.java:50:in `load'
from LoadService.java:272:in `load'
from RubyKernel.java:1081:in `loadCommon'
from RubyKernel.java:1063:in `load'
from RubyKernel$s$0$1$load.gen:65535:in `call'
from DynamicMethod.java:209:in `call'
from DynamicMethod.java:205:in `call'
from CachingCallSite.java:282:in `cacheAndCall'
from CachingCallSite.java:139:in `call'
from /var/lib/gems/1.8/bin/rake:19:in `__file__'
from /var/lib/gems/1.8/bin/rake:-1:in `load'
from Ruby.java:671:in `runScript'
from Ruby.java:575:in `runNormally'
from Ruby.java:424:in `runFromMain'
from Main.java:278:in `doRunFromMain'
from Main.java:198:in `internalRun'
from Main.java:164:in `run'
from Main.java:148:in `run'
from Main.java:128:in `main'
I believe https://github.com/jruby/jruby/commit/fbc02a4782489375cc7ceaafc9eec473f096cc37 broke it, as it is finding 'rake' on my PATH as part of C-Ruby.
If I empty my PATH, everything works fine.
Issue Links
- is duplicated by
-
JRUBY-6081
Search META-INF/jruby.home/bin for scripts first when running from a JAR and -S is given
-
Activity
Hiro Asari
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Thomas E Enebo [ enebo ] | Hiro Asari [ asari ] |
| Fix Version/s | JRuby 1.6.3 [ 17374 ] | |
| Resolution | Fixed [ 1 ] |
Hiro Asari
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Hiro Asari
made changes -
| Link |
This issue is duplicated by |
This is fixed as of 1.6.3. (Maybe 1.6.2 as well.)