mkristian
2011-Jun-10 13:45 UTC
Rails 3.1 RC4 with jruby-1.6.2 and stream-renderer missing constant Fiber
I just followed the railscast http://asciicasts.com/episodes/266-http-streaming to have streaming. calling the http://localhost:3000/users ends up with following error: [INFO] NameError (uninitialized constant ActionView::StreamingTemplateRenderer::Fiber): [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ streaming_template_renderer.rb:71:in `delayed_render'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ abstract_renderer.rb:33:in `instrument'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/activesupport-3.1.0.rc4/lib/active_support/ notifications.rb:55:in `instrument'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/activesupport-3.1.0.rc4/lib/active_support/ notifications/instrumenter.rb:21:in `instrument'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/activesupport-3.1.0.rc4/lib/active_support/ notifications.rb:55:in `instrument'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ abstract_renderer.rb:33:in `instrument'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ streaming_template_renderer.rb:70:in `delayed_render'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ streaming_template_renderer.rb:56:in `render_template'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ streaming_template_renderer.rb:23:in `call'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/ streaming_template_renderer.rb:23:in `each'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/rack-1.3.0/lib/rack/chunked.rb:23:in `each'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_dispatch/http/ response.rb:43:in `send'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_dispatch/http/ response.rb:43:in `each'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/activerecord-3.1.0.rc4/lib/active_record/ query_cache.rb:37:in `each'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/activerecord-3.1.0.rc4/lib/active_record/ connection_adapters/abstract/connection_pool.rb:429:in `each'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/rack-1.3.0/lib/rack/lock.rb:7:in `each'' [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/rack-1.3.0/lib/rack/handler/webrick.rb:71:in `service'' then I found in actionpack-3.1.0.rc4/lib/action_controller/metal/ streaming.rb that streaming is only supported with ruby-1.9.2 - would it not be nicer to get such a message when I want to use streaming the way I configured it ? jruby in 1.9 gives a NullPointerException which looks more like a bug in jruby. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.