[Backgroundrb-devel] Error when creating a new worker -- "Text is not a module - (TypeError)"

David Lee davidjy.lee at gmail.com
Sat Nov 11 18:40:35 EST 2006


Hello everyone,

I'm stuck with this very obscure error whenever I try to create a new
worker. My worker is a subclass of BackgrounDRb::Worker::RailsBase, and if
you follow the stack trace below, you can tell that the error occurs while
trying to load Rails. There is no problem starting up the server, by the
way. Does anyone have any idea what might be causing this? I didn't have
this problem with the previous version of backgroundrb.

Any pointers would be appreciated.

Thank you!
David



Text is not a module - (TypeError)
/Users/guest/workspace/nano/config/../vendor/rails/actionmailer/lib/action_mailer/vendor/text/format.rb:49
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/Users/guest/workspace/nano/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in
`require'
/Users/guest/workspace/nano/config/../vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb:1
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/Users/guest/workspace/nano/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in
`require'
/Users/guest/workspace/nano/config/../vendor/rails/actionmailer/lib/action_mailer.rb:39
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/Users/guest/workspace/nano/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in
`require'
/Users/guest/workspace/nano/config/../vendor/rails/railties/lib/initializer.rb:137:in
`require_frameworks'
/Users/guest/workspace/nano/config/../vendor/rails/railties/lib/initializer.rb:137:in
`require_frameworks'
/Users/guest/workspace/nano/config/../vendor/rails/railties/lib/initializer.rb:81:in
`process'
/Users/guest/workspace/nano/config/../vendor/rails/railties/lib/initializer.rb:42:in
`run'
/Users/guest/workspace/nano/config/environment.rb:13
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
/Users/guest/workspace/nano/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in
`require'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb/worker_rails.rb:19:in
`initialize'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:170:in
`new_worker'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:36:in
`dispatch'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in
`dispatch'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:159:in
`new_worker'
/usr/local/lib/ruby/1.8/drb/drb.rb:1552:in `perform_without_block'
/usr/local/lib/ruby/1.8/drb/drb.rb:1512:in `perform'
/usr/local/lib/ruby/1.8/drb/drb.rb:1586:in `main_loop'
/usr/local/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
/usr/local/lib/ruby/1.8/drb/drb.rb:1578:in `main_loop'
/usr/local/lib/ruby/1.8/drb/drb.rb:1427:in `run'
/usr/local/lib/ruby/1.8/drb/drb.rb:1424:in `run'
/usr/local/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'
/usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:215:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/application.rb:186:in
`start_proc'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/application.rb:196:in
`start_proc'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/application.rb:226:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/controller.rb:72:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons.rb:179:in
`run_proc'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons/cmdline.rb:94:in
`catch_exceptions'
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.3/lib/daemons.rb:178:in
`run_proc'
/Users/guest/workspace/nano/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:204:in
`run'
./script/backgroundrb:29
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20061111/1c158d41/attachment.html 


More information about the Backgroundrb-devel mailing list