|
Thomas E Enebo made changes - 05/Jan/09 06:58 PM
I am also seeing this problem. It is especially irksome given how long it takes JRuby to start up Rails - doing TDD is very painful when it takes 10 seconds just to get your spec going! In this world, the rspec spec_server is a very helpful way to speed up your TDD cycles. Getting this working would be a big win for JRuby! This is an important issue for my team as well. We can not upgrade from Rails 2.1.0 due to the speed of running specs in higher versions... I'd suggest you have two issues here: 1.) RSpec in JRuby fails to catch Java Exceptions, hence the exception prints to the console rather then the RSpec output. begin 2.) JRuby is throwing an unhanded Java NullPointerException, which seems to trigger this "closed stream IOError" when attempting to wrap it to a ruby object. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
I'm having the same issue:
$ jruby -S spec -X -o spec/spec.opts spec/controllers/companies_controller_spec.rb
(druby://127.0.0.1:8989) script/spec_server:14:in `run': closed stream (IOError)
from (druby://127.0.0.1:8989) /usr/local/jruby/lib/ruby/1.8/drb/drb.rb:1548:in `perform_without_block'
from (druby://127.0.0.1:8989) /usr/local/jruby/lib/ruby/1.8/drb/drb.rb:1508:in `perform'
from (druby://127.0.0.1:8989) /usr/local/jruby/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
from (druby://127.0.0.1:8989) :1:in `accept'
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/drb_command_line.rb:13:in `run'
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/option_parser.rb:188:in `parse_drb'
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner/option_parser.rb:128:in `order!'
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/runner.rb:59:in `options'
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4:in `run'
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:4
from /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec:19:in `load'
from /usr/local/jruby/bin/spec:19