Looks like something else has defined Text before ActionMailer. Try
a breakpoint in format.rb:48 and see what Text is. I''m guessing your
worker is requiring a library that''s defined Text as a class or
something.
Jon
On 20 Feb 2007, at 19:51, Stevie Clifton wrote:
> Hello all,
>
> After upgrading to Rails 1.2.2, I''m getting a strange error when
> one of my workers is invoked. The worker is responsible for
> monitoring a folder (using directory_watcher) and emailing a
> specific user when a file is dropped there, but it''s bombing
> immediately upon instantiation (or maybe when trying to instantiate
> ActionMailer?) with the error "Text is not a Module".
>
> Thanks for any input on this one!
>
> stevie
>
> 20070220-14:41:56 (4800) Text is not a module - (TypeError)
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> actionmailer/lib/action_mailer/vendor/text/format.rb:49
>
> 20070220-14:41:56 (4800) /usr/local/lib/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:342:in `new_constants_in''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> actionmailer/lib/action_mailer/mail_helper.rb:1
>
> 20070220-14:41:56 (4800) /usr/local/lib/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:342:in `new_constants_in''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> actionmailer/lib/action_mailer.rb:38
>
> 20070220-14:41:56 (4800) /usr/local/lib/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:342:in `new_constants_in''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/railties/
> lib/initializer.rb:162:in `require_frameworks''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/railties/
> lib/initializer.rb:162:in `require_frameworks''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/railties/
> lib/initializer.rb:83:in `process''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/railties/
> lib/initializer.rb:43:in `run''
>
> 20070220-14:41:56 (4800) /u/testapp/config/environment.rb:14
>
> 20070220-14:41:56 (4800) /usr/local/lib/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:342:in `new_constants_in''
>
> 20070220-14:41:56 (4800) /u/testapp/config/../vendor/rails/
> activerecord/lib/../../activesupport/lib/active_support/
> dependencies.rb:495:in `require''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb/worker_rails.rb:24:in `initialize''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb/middleman.rb:211:in `new_worker''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb/thread_pool.rb:36:in `dispatch''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb/thread_pool.rb:22:in `dispatch''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb/middleman.rb:199:in `new_worker''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1552:in
> `perform_without_block''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1512:in
> `perform''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1586:in
> `main_loop''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1582:in
> `main_loop''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1578:in
> `main_loop''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1427:in
`run''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1424:in
`run''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1344:in
> `initialize''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/1.8/drb/drb.rb:1624:in
> `start_service''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb_server.rb:315:in `run''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons/application.rb:186:in `start_proc''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons/daemonize.rb:192:in `call_as_daemon''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons/application.rb:190:in `start_proc''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons/application.rb:226:in `start''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons/controller.rb:69:in `run''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons.rb:182:in `run_proc''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons/cmdline.rb:94:in `catch_exceptions''
>
> 20070220-14:41:56 (4800) /usr/lib/ruby/gems/1.8/gems/daemons-1.0.4/
> lib/daemons.rb:181:in `run_proc''
>
> 20070220-14:41:56 (4800) /u/testapp/vendor/plugins/backgroundrb/
> server/lib/backgroundrb_server.rb:301:in `run''
>
> 20070220-14:41:56 (4800) script/backgroundrb:30
>
>
>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel