Forum: Rails Engines Conflict with Mail Queue and Engines?

Posted by seth b. (subimage)
on 2006-12-14 02:08
I'm trying to use the Mail Queue plugin from:
ruby script/plugin install svn://rubyforge.org/var/svn/mail-queue

When I try to deliver an email I'm getting the following stack trace.
Looks like it's conflicting with engines, but I can't be sure. Anyone
else seen this or know what might be going on?

-----------------------------------


You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.empty?

/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:371:in
`new_constants_in'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:199:in
`load_file'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:95:in
`rails_pre_engines_require_or_load'
/Work/myapp/site/trunk/config/../vendor/plugins/engines/lib/engines/dependencies_extensions.rb:60:in
`rails_1_1_require_or_load'
/Work/myapp/site/trunk/config/../vendor/plugins/engines/lib/engines/dependencies_extensions.rb:14:in
`require_or_load'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:245:in
`load_missing_constant'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:446:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:458:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:257:in
`load_missing_constant'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:446:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/plugins/mail-queue/lib/mail_queue.rb:13:in
`deliver!'
/Work/myapp/site/trunk/config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:325:in
`method_missing'
/Work/myapp/site/trunk/config/../app/controllers/estimates_controller.rb:153:in
`new'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
`perform_action_without_filters'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:622:in
`perform_action_without_benchmark'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in
`perform_action'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/base.rb:427:in
`process_without_filters'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:627:in
`process_without_session_management_support'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
`process'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/base.rb:330:in
`process'
/Work/myapp/site/trunk/config/../vendor/rails/railties/lib/dispatcher.rb:41:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in
`process'
/usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in
`process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in
`process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:267:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
/usr/local/bin/mongrel_rails:18
Posted by seth b. (subimage)
on 2006-12-14 02:30
Not sure if anyone saw this as I got a rejected mail message from the
list server. Apologies if this is a duplicate...
---------------


I'm trying to use the Mail Queue plugin from:
ruby script/plugin install svn://rubyforge.org/var/svn/mail-queue

When I try to deliver an email I'm getting the following stack trace.
Looks like it's conflicting with engines, but I can't be sure. Anyone
else seen this or know what might be going on?

-----------------------------------


You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.empty?

/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:371:in
`new_constants_in'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:199:in
`load_file'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:95:in
`rails_pre_engines_require_or_load'
/Work/myapp/site/trunk/config/../vendor/plugins/engines/lib/engines/dependencies_extensions.rb:60:in
`rails_1_1_require_or_load'
/Work/myapp/site/trunk/config/../vendor/plugins/engines/lib/engines/dependencies_extensions.rb:14:in
`require_or_load'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:245:in
`load_missing_constant'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:446:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:458:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:257:in
`load_missing_constant'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:446:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:in
`const_missing'
/Work/myapp/site/trunk/config/../vendor/plugins/mail-queue/lib/mail_queue.rb:13:in
`deliver!'
/Work/myapp/site/trunk/config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:325:in
`method_missing'
/Work/myapp/site/trunk/config/../app/controllers/estimates_controller.rb:153:in
`new'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
`perform_action_without_filters'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
`call'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
`call_filter'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:622:in
`perform_action_without_benchmark'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in
`perform_action'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/base.rb:427:in
`process_without_filters'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/filters.rb:627:in
`process_without_session_management_support'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
`process'
/Work/myapp/site/trunk/config/../vendor/rails/actionpack/lib/action_controller/base.rb:330:in
`process'
/Work/myapp/site/trunk/config/../vendor/rails/railties/lib/dispatcher.rb:41:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in
`process'
/usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in
`process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in
`process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:267:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
/usr/local/bin/mongrel_rails:18
Posted by James Adam (Guest)
on 2006-12-14 10:45
(Received via mailing list)
We'd need to find out what constant Mail Queue is expecting in it's
deliver! method, and where engines/Rails is looking to load it from.
Turning on the engines logger should give some fairly detailed output
about Rails attempting to load classes.
Posted by James Smith (Guest)
on 2007-04-11 22:10
I thought I would post my 'fix' incase anyone runs across this post with
the same problem.

I renamed the mail-queue folder in vendor/plugins to mail_queue

After the rename everything worked great.

Subimage Interactive wrote:
> I'm trying to use the Mail Queue plugin from:
> ruby script/plugin install svn://rubyforge.org/var/svn/mail-queue
> 
> When I try to deliver an email I'm getting the following stack trace.
> Looks like it's conflicting with engines, but I can't be sure. Anyone
> else seen this or know what might be going on?
Posted by Roger Pack (rogerdpack)
on 2007-09-26 18:27
James Smith wrote:
> I thought I would post my 'fix' incase anyone runs across this post with
> the same problem.
> 
> I renamed the mail-queue folder in vendor/plugins to mail_queue
worked for me, as well
rename selenium-plugin as selenium_plugin and voila.
Posted by Roger Pack (rogerdpack)
on 2007-09-26 18:30
James Smith wrote:
> I thought I would post my 'fix' incase anyone runs across this post with
> the same problem.
> 
> I renamed the mail-queue folder in vendor/plugins to mail_queue

worked for me, as well
rename selenium-plugin as selenium_plugin and voila.
Posted by Kai Johnson (kai0001)
on 2007-10-14 12:11
Roger Pack wrote:
> James Smith wrote:
>> I thought I would post my 'fix' incase anyone runs across this post with
>> the same problem.
>> 
>> I renamed the mail-queue folder in vendor/plugins to mail_queue
> 
> worked for me, as well
> rename selenium-plugin as selenium_plugin and voila.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.