"undefined method `options' for []:Array (NoMethodError)" with JRuby trunk and
Mongrel
--------------------------------------------------------------------------------------
Key: JRUBY-1411
URL: http://jira.codehaus.org/browse/JRUBY-1411
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.1
Environment: Windows Vista, JDK 1.5.0_012
Reporter: Arun Gupta
Priority: Blocker
JRuby 1.0.1 + (default) Rails Gem (version 1.2.4) does not work on Windows
because of JRUBY-1401. JRuby 1.0.1 + (default) Mongrel 1.0.1 does not work on
Windows because of JRUBY-1410.
Now the trunk is broken because of the following stack trace.
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
java.lang.NoSuchMethodError:
org.jruby.RubyHash.aset(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jru
by/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
at org.jruby.mongrel.URIClassifier.register(URIClassifier.java:89)
at org.jruby.mongrel.URIClassifierInvoker$register_F2.call(Unknown
Source)
at
org.jruby.runtime.callback.FastInvocationCallback.execute(FastInvocationCallback.java:49)
at
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:70
)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at org.jruby.runtime.Block.yield(Block.java:235)
at org.jruby.runtime.Block.call(Block.java:188)
at org.jruby.RubyProc.call(RubyProc.java:182)
at
org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:67)
at org.jruby.RubyMethod.call(RubyMethod.java:116)
at org.jruby.RubyMethodInvoker$call_opt.call(Unknown Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:58)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMe
thod.java:73)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1001)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at org.jruby.runtime.Block.yield(Block.java:235)
at org.jruby.runtime.Block.call(Block.java:188)
at org.jruby.RubyProc.call(RubyProc.java:182)
at
org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:67)
at org.jruby.RubyMethod.call(RubyMethod.java:116)
at org.jruby.RubyMethodInvoker$call_opt.call(Unknown Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:58)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMe
thod.java:73)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at org.jruby.RubyObject.callMethod(RubyObject.java:529)
at org.jruby.RubyObject.callMethod(RubyObject.java:485)
at org.jruby.RubyClass.newInstance(RubyClass.java:208)
at org.jruby.RubyClassInvoker$newInstance_0_0.call(Unknown Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:58)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMe
thod.java:73)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:566)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1138)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:287)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:561)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at org.jruby.evaluator.ASTInterpreter.notNode(ASTInterpreter.java:1250)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:319)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:271)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1510)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:357)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at org.jruby.Ruby.loadFile(Ruby.java:1721)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:53)
at org.jruby.runtime.load.LoadService.load(LoadService.java:214)
at org.jruby.RubyKernel.load(RubyKernel.java:761)
at org.jruby.RubyKernelInvoker$load_Sopt.call(Unknown Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:58)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMe
thod.java:73)
at org.jruby.RubyObject.callMethod(RubyObject.java:529)
at org.jruby.RubyObject.callSuper(RubyObject.java:469)
at
org.jruby.evaluator.ASTInterpreter.superNode(ASTInterpreter.java:1564)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:367)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at org.jruby.runtime.Block.yield(Block.java:235)
at
new_constants_in1244162_25942001.__ensure_2(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.2/lib/active_support/dependencies.rb:342)
at
new_constants_in1244162_25942001.__ensure_1(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.2/lib/active_support/dependencies.rb:342)
at
new_constants_in1244162_25942001.__file__(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/acti
vesupport-1.4.2/lib/active_support/dependencies.rb:314)
at
new_constants_in1244162_25942001.run(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesup
port-1.4.2/lib/active_support/dependencies.rb)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:112)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:566)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:208)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1412)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:351)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at
org.jruby.evaluator.ASTInterpreter.ensureNode(ASTInterpreter.java:968)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:248)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1510)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:357)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at org.jruby.Ruby.loadFile(Ruby.java:1721)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:53)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:318)
at org.jruby.runtime.load.LoadService.require(LoadService.java:344)
at org.jruby.RubyKernel.require(RubyKernel.java:753)
at org.jruby.RubyKernelInvoker$require_S1.call(Unknown Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:58)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMe
thod.java:73)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at
require16703414_25942001.__rescue_1(C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/c
ustom_require.rb:27)
at
require16703414_25942001.__file__(C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/cus
tom_require.rb:27)
at
require16703414_25942001.run(C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/custom_r
equire.rb)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:112)
at org.jruby.RubyObject.callMethod(RubyObject.java:529)
at org.jruby.RubyObject.callSuper(RubyObject.java:469)
at
require2861196_25942001.closure0(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesupport
-1.4.2/lib/active_support/dependencies.rb:495)
at require2861196_25942001Blockclosure0xx1.call(Unknown Source)
at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:100)
at
new_constants_in1244162_25942001.__ensure_2(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.2/lib/active_support/dependencies.rb:342)
at
new_constants_in1244162_25942001.__ensure_1(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.2/lib/active_support/dependencies.rb:342)
at
new_constants_in1244162_25942001.__file__(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/acti
vesupport-1.4.2/lib/active_support/dependencies.rb:314)
at
new_constants_in1244162_25942001.run(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesup
port-1.4.2/lib/active_support/dependencies.rb)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:112)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:144)
at
require2861196_25942001.__rescue_1(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesuppo
rt-1.4.2/lib/active_support/dependencies.rb:495)
at
require2861196_25942001.__file__(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesupport
-1.4.2/lib/active_support/dependencies.rb:495)
at
require2861196_25942001.run(C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesupport-1.4.
2/lib/active_support/dependencies.rb)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:112)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:535)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:202)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1510)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:357)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at org.jruby.Ruby.loadFile(Ruby.java:1721)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:53)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:318)
at org.jruby.runtime.load.LoadService.require(LoadService.java:344)
at org.jruby.RubyKernel.require(RubyKernel.java:753)
at org.jruby.RubyKernelInvoker$require_S1.call(Unknown Source)
at
org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:58)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMe
thod.java:73)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:996)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:254)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1412)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:351)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:165)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:144)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:167)
at
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:108)
at script.server.__file__(script\server:3)
at script.server.load(script\server)
at org.jruby.Ruby.runScript(Ruby.java:560)
at org.jruby.Ruby.runNormally(Ruby.java:482)
at org.jruby.Ruby.runFromMain(Ruby.java:407)
at org.jruby.Main.runInterpreter(Main.java:223)
at org.jruby.Main.runInterpreter(Main.java:179)
at org.jruby.Main.run(Main.java:121)
at org.jruby.Main.main(Main.java:96)
C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:14
warning: a
lready initialized constant OPTIONS
C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:18:in
`method
_missing': undefined method `options' for []:Array (NoMethodError)
from
C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from
C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from
C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/depen
dencies.rb:495:in `require'
from
C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39:in
`ne
w_constants_in'
from
C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/depen
dencies.rb:495:in `require'
from
C:/temp/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39:in
`re
quire'
from
C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/temp/jruby-1.0.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from script\server:3:in `require'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email